mirror of
https://github.com/juanfont/headscale.git
synced 2025-08-11 15:27:37 +00:00
add generic logerr func to shorten code
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:

committed by
Kristoffer Dalby

parent
fe75b71620
commit
665a3cc666
7
hscontrol/util/log.go
Normal file
7
hscontrol/util/log.go
Normal file
@@ -0,0 +1,7 @@
|
||||
package util
|
||||
|
||||
import "github.com/rs/zerolog/log"
|
||||
|
||||
func LogErr(err error, msg string) {
|
||||
log.Error().Caller().Err(err).Msg(msg)
|
||||
}
|
Reference in New Issue
Block a user