From 82e8aac2fd1f188e209434c412c3a78e04acfe52 Mon Sep 17 00:00:00 2001 From: Katrina Rogan Date: Wed, 4 May 2022 12:07:22 -0600 Subject: [PATCH] Update gorm 'info' log level translation (#134) Signed-off-by: Katrina Rogan --- flytestdlib/database/gorm.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flytestdlib/database/gorm.go b/flytestdlib/database/gorm.go index db8f7a32a3..7672806e00 100644 --- a/flytestdlib/database/gorm.go +++ b/flytestdlib/database/gorm.go @@ -30,9 +30,9 @@ func GetGormLogger(ctx context.Context, logConfig *logger.Config) gormLogger.Int case logger.ErrorLevel: logLevel = gormLogger.Error case logger.WarnLevel: - logLevel = gormLogger.Warn - case logger.InfoLevel: fallthrough + case logger.InfoLevel: + logLevel = gormLogger.Warn case logger.DebugLevel: logLevel = gormLogger.Info ignoreRecordNotFoundError = false