bepass-org / warp-plus

Warp+Psiphon, an anti censorship utility for iran
MIT License
1.32k stars 236 forks source link

Chore: do not log `handling connection` when verbose logging is not enabled #147

Open erfanium opened 3 weeks ago

erfanium commented 3 weeks ago
May 31 17:20:47 tuf warp-plus[1438]: time=2024-05-31T17:20:47.475+03:30 level=INFO msg="handling connection" gool=inner subsystem=vtun protocol=tcp destination=kinesis.us-east-1.amazonaws.com:443
May 31 17:20:47 tuf warp-plus[1438]: time=2024-05-31T17:20:47.924+03:30 level=INFO msg="handling connection" gool=inner subsystem=vtun protocol=tcp destination=beacons.gcp.gvt2.com:443
May 31 17:20:48 tuf warp-plus[1438]: time=2024-05-31T17:20:48.703+03:30 level=INFO msg="handling connection" gool=inner subsystem=vtun protocol=tcp destination=google.com:443

these info logs are spam and not necessary. I recommend to only log these lines only if --verbose flag has been provided by user.

It's also okay for me to change the logging level by providing a --log-level flag

markpash commented 3 weeks ago

Good point, I'll move this into verbose.