diff --git a/src/common/utils/log/logger.go b/src/common/utils/log/logger.go index 882f8a716..5c8b6b376 100644 --- a/src/common/utils/log/logger.go +++ b/src/common/utils/log/logger.go @@ -278,7 +278,7 @@ func line(callDepth int) string { line = 0 } l := strings.SplitN(file, srcSeparator, 2) - if len(l) > 0 { + if len(l) > 1 { file = l[1] } return fmt.Sprintf("[%s:%d]:", file, line)