mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-14 06:57:35 +08:00
code refactor
This commit is contained in:
@@ -41,7 +41,7 @@ func (f *LogFormatter) Format(entry *logrus.Entry) ([]byte, error) {
|
||||
b.WriteString("] ")
|
||||
}
|
||||
|
||||
if requestId, exists := entry.Data[logFieldRequestId]; exists {
|
||||
if requestId, exists := entry.Data[logFieldRequestId]; exists && requestId != "" {
|
||||
b.WriteString(fmt.Sprintf("[%s] ", requestId))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user