mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-09-27 20:10:51 -04:00
logging: reduce grpc logging noise (#3329)
* Normalize gRPC logs to print at warn level only * Fix grpcLogger level enablement --------- Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
parent
6e6ea1a9d5
commit
c11631ec11
12 changed files with 48 additions and 43 deletions
|
@ -46,11 +46,7 @@ func main() {
|
|||
verbosity := flag.Int("v", 0, logger.CmdLineVerbosityDescription)
|
||||
flag.Parse()
|
||||
log := logger.NewJSONLogger(logger.VerbosityFromInt(*verbosity)).WithGroup("bootstrapper")
|
||||
logger.ReplaceGRPCLogger(
|
||||
slog.New(
|
||||
logger.NewLevelHandler(logger.VerbosityFromInt(*verbosity), log.Handler()),
|
||||
).WithGroup("gRPC"),
|
||||
)
|
||||
logger.ReplaceGRPCLogger(logger.GRPCLogger(log))
|
||||
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
defer cancel()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue