Skip to content

Commit

Permalink
update logging and typo fix (#335)
Browse files Browse the repository at this point in the history
  • Loading branch information
henry54809 authored Aug 5, 2021
1 parent 16a9741 commit 55b810b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion forch/faucet_event_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ def _debounce_port_event(self, event, port, active):
self._port_timers[state_key].cancel()
if active:
# Port down events are ignored upon port up while there is a set timer.
self._logger.info('Ignoring spurious port down event')
self._logger.info('Ignoring spurious port down event for %s:%s',
event['dp_name'], port)

if active:
self._handle_debounce(event, port, active)
Expand Down
2 changes: 1 addition & 1 deletion forch/port_state_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ def handle_testing_result(self, testing_result):
mac_lower = mac.lower()
terminal = self._transition_device_state(mac_lower, device_behavior)
if terminal and mac_lower in self._sequester_timer:
self._logger.info('Cancelling deivce %s sequester timeout', mac_lower)
self._logger.info('Cancelling device %s sequester timeout', mac_lower)
self._sequester_timer[mac_lower].cancel()
del self._sequester_timer[mac_lower]
return terminal
Expand Down

0 comments on commit 55b810b

Please sign in to comment.