Skip to content

Commit 15d348a

Browse files
committed
fix: refactor logging system and improve test reliability
- Remove newline character from log message format in `logWithCallerf` function Signed-off-by: appleboy <[email protected]>
1 parent 55f17d8 commit 15d348a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

logger.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ type defaultLogger struct {
3333

3434
func (l defaultLogger) logWithCallerf(logger *log.Logger, format string, args ...interface{}) {
3535
stack := stack(3)
36-
logger.Printf("%s\n%s", stack, fmt.Sprintf(format, args...))
36+
logger.Printf("%s%s", stack, fmt.Sprintf(format, args...))
3737
}
3838

3939
func (l defaultLogger) logWithCaller(logger *log.Logger, args ...interface{}) {

0 commit comments

Comments
 (0)