mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
pad log source when logging to file too
This commit is contained in:
parent
829c8fca96
commit
bed133d3dd
|
@ -786,7 +786,7 @@ class SvcHub(object):
|
||||||
if "\033" in msg:
|
if "\033" in msg:
|
||||||
msg += "\033[0m"
|
msg += "\033[0m"
|
||||||
|
|
||||||
self.logf.write("@%s [%s] %s\n" % (ts, src, msg))
|
self.logf.write("@%s [%-21s] %s\n" % (ts, src, msg))
|
||||||
if not self.args.no_logflush:
|
if not self.args.no_logflush:
|
||||||
self.logf.flush()
|
self.logf.flush()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue