Skip to content

Commit

Permalink
better log format
Browse files Browse the repository at this point in the history
  • Loading branch information
jabdoa2 committed Dec 19, 2016
1 parent 251f8a1 commit 7363977
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mpf/devices/score_reel.py
Expand Up @@ -223,15 +223,14 @@ def check_hw_switches(self, no_event=False):
# we're not in the right position
if value != -999:
if value != self.assumed_value:
self.log.info("Setting value to %s because that switch is active.".format(value))
self.log.info("Setting value to %s because that switch is active.", value)
self.assumed_value = value

# if value is -999, but we have a switch for the assumed value,
# then we're in the wrong position because our hw_value should be
# at the assumed value
elif self.assumed_value != -999 and self.value_switches[self.assumed_value]:
self.log.warning("Assumed value %s but the switch for that value is not active".format(
self.assumed_value))
self.log.warning("Assumed value %s but the switch for that value is not active", self.assumed_value)
self.assumed_value = -999

if not no_event:
Expand Down

0 comments on commit 7363977

Please sign in to comment.