Skip to content

Commit

Permalink
Merge pull request #221 from Nordix/arp_dynloglevel
Browse files Browse the repository at this point in the history
Add capability to set loglevel to trace during runtime
  • Loading branch information
denis-tingaikin authored Oct 14, 2024
2 parents 0f620b3 + 5c3f427 commit d4be4bf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ func main() {
logrus.Fatalf("invalid log level %s", config.LogLevel)
}
logrus.SetLevel(level)
logruslogger.SetupLevelChangeOnSignal(ctx, map[os.Signal]logrus.Level{
syscall.SIGUSR1: logrus.TraceLevel,
syscall.SIGUSR2: level,
})

// ********************************************************************************
// Configure Open Telemetry
Expand Down

0 comments on commit d4be4bf

Please sign in to comment.