Adding timestamp to log line output.

Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
This commit is contained in:
Tim 'mithro' Ansell 2019-02-05 21:56:05 -08:00
parent a82882a4c0
commit 09ae28be13
1 changed files with 5 additions and 2 deletions

View File

@ -124,8 +124,11 @@ class Logger:
running_for = time_log - self.time_start
msg = msg.format(*args, **kw)
log_prefix = "{:s} - {:>5s}: ".format(
self.fuzzer, pretty_timedelta_str(running_for))
log_prefix = "{:s} - {:s} - {:>5s}: ".format(
time_log.isoformat(),
self.fuzzer,
pretty_timedelta_str(running_for),
)
msg = "\n".join(log_prefix + x for x in msg.splitlines())
print(msg, flush=True)