Skip to content

Commit

Permalink
Use the correct function to avoid unnecessary formatting
Browse files Browse the repository at this point in the history
Change "logger.Error().Msgf(errMsg)" to "logger.Error().Msg(errMsg)"
  • Loading branch information
ctyytc authored Jan 21, 2025
1 parent 79fafb5 commit dc2d1ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/log/func.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ func Panicf(format string, args ...interface{}) {
}
errMsg += fmt.Sprintf("\n\t\t\t%v -> %n()", frameStr, frame)
}
logger.Error().Msgf(errMsg)
logger.Error().Msg(errMsg)
os.Exit(1)
}

0 comments on commit dc2d1ab

Please sign in to comment.