Skip to content

Commit

Permalink
Merge changes from cbpowell/SenseLink to reduce log noise (#49)
Browse files Browse the repository at this point in the history
* Merge changes from cbpowell/SenseLink to reduce log noise
cbpowell/SenseLink@5381045

* Adjusted changes to reflect renamed variables
  • Loading branch information
lymanepp authored Oct 3, 2021
1 parent 8623ae3 commit ef57e03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sense_energy/sense_link.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def datagram_received(self, data, addr):
logging.debug("Ignoring non-empty/non-Sense UDP request")
return

logging.debug("Broadcast received from: %s: %s", addr, json_data)
logging.debug(f"Broadcast received from {addr}: {json_data}")

# Build and send responses
for plug in self._devices():
Expand All @@ -57,7 +57,7 @@ def datagram_received(self, data, addr):
# Do not send response, but log for debugging
logging.debug(f"SENSE_RESPONSE disabled, response content: {response}")
else:
logging.info(f"Unexpected/unhandled message: {json_data}")
logging.debug(f"Ignoring non-emeter JSON from {addr}: {json_data}")

# Appears to not be JSON
except ValueError:
Expand Down

0 comments on commit ef57e03

Please sign in to comment.