mirror of https://github.com/openXC7/prjxray.git
Adding timestamp to log line output.
Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
This commit is contained in:
parent
a82882a4c0
commit
09ae28be13
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue