Skip to content

Commit fb70514

Browse files
carloryrootfs
authored andcommitted
Fix: The caller information points to the wrapper function instead of the actual call location (vllm-project#518)
Signed-off-by: carlory <[email protected]> Signed-off-by: Huamin Chen <[email protected]>
1 parent cb944ae commit fb70514

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)