try fixing badkey

This commit is contained in:
merdan 2024-10-09 15:48:27 +05:00
parent 8f9bafef28
commit 23e44ec39f
2 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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...)
}