try fixing badkey
This commit is contained in:
parent
8f9bafef28
commit
23e44ec39f
|
|
@ -91,7 +91,7 @@ func handleMessage(ctx context.Context, body []byte, db *gorm.DB, logger fl.LogS
|
|||
return
|
||||
}
|
||||
|
||||
logger.Info("Message", "src", message.Src, "dst", message.Dst, "msg", message.Msg)
|
||||
logger.Info(message.Msg, "src", message.Src, "dst", message.Dst)
|
||||
|
||||
if err := message.Insert(ctx, db); err != nil {
|
||||
logger.Error("Message cannot be Inserted", "err", err)
|
||||
|
|
|
|||
|
|
@ -67,9 +67,9 @@ func SetupLogger(env string) (LogService, error) {
|
|||
}
|
||||
|
||||
func (l *loggers) Error(msg string, args ...any) {
|
||||
l.errorLogger.Error(msg, args)
|
||||
l.errorLogger.Error(msg, args...)
|
||||
}
|
||||
|
||||
func (l *loggers) Info(msg string, args ...any) {
|
||||
l.infoLogger.Info(msg, args)
|
||||
l.infoLogger.Info(msg, args...)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue