mirror of
https://github.com/netbirdio/netbird.git
synced 2025-08-14 01:08:46 +02:00
Print out the goroutine id (#3433)
The TXT logger prints out the actual go routine ID This feature depends on 'loggoroutine' build tag ```go build -tags loggoroutine```
This commit is contained in:
9
formatter/hook/additional_empty.go
Normal file
9
formatter/hook/additional_empty.go
Normal file
@ -0,0 +1,9 @@
|
||||
//go:build !loggoroutine
|
||||
|
||||
package hook
|
||||
|
||||
import log "github.com/sirupsen/logrus"
|
||||
|
||||
func additionalEntries(_ *log.Entry) {
|
||||
// This function is empty and is used to demonstrate the use of additional hooks.
|
||||
}
|
Reference in New Issue
Block a user