mirror of
https://github.com/9001/copyparty.git
synced 2026-04-13 07:32:49 -06:00
Fixed bug with --flo 2 not working without -q
This commit is contained in:
parent
30fc17a540
commit
6868f86f48
|
|
@ -1373,6 +1373,8 @@ class SvcHub(object):
|
||||||
lh = codecs.open(fn, "w", encoding="utf-8", errors="replace")
|
lh = codecs.open(fn, "w", encoding="utf-8", errors="replace")
|
||||||
|
|
||||||
# Patch the opened log file write method
|
# Patch the opened log file write method
|
||||||
|
# Only patch when flo == 2 (i.e. no colors)
|
||||||
|
if self.flo == 2:
|
||||||
orig_w = lh.write
|
orig_w = lh.write
|
||||||
|
|
||||||
def patched_write(data: str):
|
def patched_write(data: str):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue