mirror of
https://github.com/netbirdio/netbird.git
synced 2025-03-13 14:18:47 +01:00
The TXT logger prints out the actual go routine ID This feature depends on 'loggoroutine' build tag ```go build -tags loggoroutine```
13 lines
207 B
Go
13 lines
207 B
Go
//go:build loggoroutine
|
|
|
|
package hook
|
|
|
|
import (
|
|
"github.com/petermattis/goid"
|
|
log "github.com/sirupsen/logrus"
|
|
)
|
|
|
|
func additionalEntries(entry *log.Entry) {
|
|
entry.Data[EntryKeyGoroutineID] = goid.Get()
|
|
}
|