Commit 6d051a78 authored by Antoine Catton's avatar Antoine Catton

Minor: print prettier log with simplelogger

parent e3113c86
...@@ -33,7 +33,8 @@ def log(args): ...@@ -33,7 +33,8 @@ def log(args):
prefix = time.strftime('%Y-%m-%d.%H:%M.%s:') prefix = time.strftime('%Y-%m-%d.%H:%M.%s:')
with open(args['filename'], 'aw') as logfile: with open(args['filename'], 'aw') as logfile:
for line in sys.stdin: for line in sys.stdin:
print >> logfile, prefix, line print >> logfile, prefix, line,
print >> logfile, prefix, '------------------------'
class Recipe(GenericBaseRecipe): class Recipe(GenericBaseRecipe):
......
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