Commit 66479ac7 by devttys0

Fixed logging bug

parent 5dff8a31
......@@ -30,7 +30,7 @@ class Display(object):
self._configure_formatting()
if log:
self.fp = open(log, "w")
self.fp = open(log, "a")
if csv:
self.csv = pycsv.writer(self.fp)
......@@ -48,6 +48,8 @@ class Display(object):
else:
self.fp.write(fmt % tuple(columns))
self.fp.flush()
def add_custom_header(self, fmt, args):
self.custom_verbose_format = fmt
self.custom_verbose_args = args
......
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