From 335871c3574d9c3d7514bc4cf5a6bf51ea9016e5 Mon Sep 17 00:00:00 2001 From: by275 Date: Sat, 13 Jan 2024 23:07:17 +0900 Subject: [PATCH] prepend timestamp to verbose logs --- pproxy/verbose.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pproxy/verbose.py b/pproxy/verbose.py index ab47436..ab5ae7c 100644 --- a/pproxy/verbose.py +++ b/pproxy/verbose.py @@ -43,7 +43,7 @@ async def realtime_stat(stats): def setup(loop, args): def verbose(s): - if args.v >= 2: + if args.v >= 1: sys.stdout.write('\x1b[32m'+time.strftime('%Y-%m-%d %H:%M:%S')+'\x1b[m ') sys.stdout.write(s+'\x1b[0K\n') else: