Skip to content

Commit cdf01f8

Browse files
committed
Improve logging via slog.Helper()
1 parent 19023e7 commit cdf01f8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tailnet/conn.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -815,6 +815,7 @@ func (a addr) String() string { return a.ln.addr }
815815
// Logger converts the Tailscale logging function to use slog.
816816
func Logger(logger slog.Logger) tslogger.Logf {
817817
return tslogger.Logf(func(format string, args ...any) {
818+
slog.Helper()
818819
logger.Debug(context.Background(), fmt.Sprintf(format, args...))
819820
})
820821
}

0 commit comments

Comments
 (0)