Skip to content

Commit 811ddb4

Browse files
authored
Fix: The caller information points to the wrapper function instead of the actual call location (#518)
Signed-off-by: carlory <[email protected]>
1 parent 968b05f commit 811ddb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/semantic-router/pkg/observability/logging.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ func InitLogger(cfg Config) (*zap.Logger, error) {
7878
}
7979

8080
if cfg.AddCaller {
81-
logger = logger.WithOptions(zap.AddCaller())
81+
logger = logger.WithOptions(zap.AddCaller(), zap.AddCallerSkip(1))
8282
}
8383

8484
// Replace globals and redirect stdlib log

0 commit comments

Comments
 (0)