cmd/cli: adopt FilteredLevelWriter when doing internal logging

Without verbose log, we use internal log writer with log level set to
debug. However, this will affect other writers, like console log, since
they are default to notice level.

By adopting FilteredLevelWriter, we can make internal log writer run in
debug level, but all others will run in default level instead.
This commit is contained in:
Cuong Manh Le
2024-12-12 15:47:18 +07:00
committed by Cuong Manh Le
parent 02ee113b95
commit 8a96b8bec4
6 changed files with 35 additions and 24 deletions

2
go.mod
View File

@@ -102,4 +102,4 @@ require (
replace github.com/mr-karan/doggo => github.com/Windscribe/doggo v0.0.0-20220919152748-2c118fc391f8
replace github.com/rs/zerolog => github.com/Windscribe/zerolog v0.0.0-20230503170159-e6aa153233be
replace github.com/rs/zerolog => github.com/Windscribe/zerolog v0.0.0-20241206130353-cc6e8ef5397c