Skip to content

Commit

Permalink
Merge pull request #368 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 d2a5eab + e820dc1 commit ec1df25
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 @@ -228,6 +228,10 @@ func main() {
}
logrus.SetLevel(level)
logrus.SetFormatter(&nested.Formatter{})
logruslogger.SetupLevelChangeOnSignal(ctx, map[os.Signal]logrus.Level{
syscall.SIGUSR1: logrus.TraceLevel,
syscall.SIGUSR2: level,
})

config.dnsServerAddrCh = make(chan net.IP, 1)

Expand Down

0 comments on commit ec1df25

Please sign in to comment.