Commit ab5a7378 by Calen Pennington

Clean up logging to use %-style formatting

parent f75bf92f
...@@ -145,12 +145,13 @@ class LoggingFormatter(Formatter): ...@@ -145,12 +145,13 @@ class LoggingFormatter(Formatter):
) )
) )
LOGGER.info("\nPlaybook {0} finished: {1}, {2} total tasks. {3} elapsed. \n".format( LOGGER.info(
"\nPlaybook %s finished: %s, %d total tasks. %s elapsed. \n",
playbook_name, playbook_name,
time.asctime(), playbook_timestamp.end,
len(results), len(results),
playbook_timestamp, playbook_timestamp.duration,
)) )
class CallbackModule(object): class CallbackModule(object):
...@@ -191,7 +192,6 @@ class CallbackModule(object): ...@@ -191,7 +192,6 @@ class CallbackModule(object):
self.current_task = name self.current_task = name
self.stats[self.current_task] = Timestamp() self.stats[self.current_task] = Timestamp()
def playbook_on_stats(self, stats): def playbook_on_stats(self, stats):
""" """
Prints the timing of each task and total time to Prints the timing of each task and total time to
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment