mirror of
https://github.com/weewx/weewx.git
synced 2026-04-21 01:57:00 -04:00
If debug>2, log the URL when posting.
This will work for any RESTful uploader that uses method `post_request`.
This commit is contained in:
@@ -533,6 +533,8 @@ class RESTThread(threading.Thread):
|
||||
"""
|
||||
# Data might be a unicode string. Encode it first.
|
||||
data_bytes = six.ensure_binary(data) if data is not None else None
|
||||
if weewx.debug >= 2:
|
||||
log.debug("%s url: '%s'", self.protocol_name, request.get_full_url())
|
||||
_response = urllib.request.urlopen(request, data=data_bytes, timeout=self.timeout)
|
||||
return _response
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@ version = 4.9.0b1
|
||||
|
||||
[[StationRegistry]]
|
||||
# To register this weather station with weewx, set this to true,
|
||||
# then fill out option 'station_url' above.
|
||||
# then fill out option 'station_url', located in the [Station] section above.
|
||||
register_this_station = false
|
||||
|
||||
[[AWEKAS]]
|
||||
|
||||
Reference in New Issue
Block a user