Skip to content

Commit

Permalink
Fix _debug_log to do string formatting properly
Browse files Browse the repository at this point in the history
  • Loading branch information
yuvipanda committed Jan 5, 2019
1 parent b736f11 commit ab07119
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion simpervisor/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ def _debug_log(self, action, message, extras=None, *args):
}
if extras:
base_extras.update(extras)
self.log.debug(message, extra=base_extras, *args)
# Call .format() explicitly here, since we wanna use new style {} formatting
self.log.debug(message.format(*args), extra=base_extras)

def _handle_signal(self, signal):
# Child processes should handle SIGTERM / SIGINT & close,
Expand Down

0 comments on commit ab07119

Please sign in to comment.