Skip to content

Commit

Permalink
Add feed address to logs when unexpected kwarg is found
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianJKoopman committed Oct 22, 2020
1 parent fc44347 commit 033ba74
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ocs/agent/aggregator.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,9 @@ def __init__(self, address, sessid, prov_id, frame_length=5*60, fresh_time=3*60,
self.last_refresh = time.time() # Determines if
self.last_block_received = None

self.log.warn("Recieved unxpected keyword argument(s): {kwarg}", kwarg=kwargs)
self.log.warn("Recieved unxpected keyword argument(s), {kwarg}, when " +
"registering the feed with address '{add}'",
kwarg=kwargs, add=self.address)

def encoded(self):
return {
Expand Down

0 comments on commit 033ba74

Please sign in to comment.