From 59819e2a1b70347d0cd3e271ff55ce95c388a856 Mon Sep 17 00:00:00 2001 From: abvf <56146630+abvf@users.noreply.github.com> Date: Mon, 15 Jul 2024 15:34:04 +0330 Subject: [PATCH] Fix log severity (#3535) --- common/errors/errors.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/errors/errors.go b/common/errors/errors.go index 1915144a..7a35f254 100644 --- a/common/errors/errors.go +++ b/common/errors/errors.go @@ -151,7 +151,7 @@ func LogInfo(ctx context.Context, msg ...interface{}) { } func LogInfoInner(ctx context.Context, inner error, msg ...interface{}) { - doLog(ctx, inner, log.Severity_Debug, msg...) + doLog(ctx, inner, log.Severity_Info, msg...) } func LogWarning(ctx context.Context, msg ...interface{}) { @@ -159,7 +159,7 @@ func LogWarning(ctx context.Context, msg ...interface{}) { } func LogWarningInner(ctx context.Context, inner error, msg ...interface{}) { - doLog(ctx, inner, log.Severity_Debug, msg...) + doLog(ctx, inner, log.Severity_Warning, msg...) } func LogError(ctx context.Context, msg ...interface{}) { @@ -167,7 +167,7 @@ func LogError(ctx context.Context, msg ...interface{}) { } func LogErrorInner(ctx context.Context, inner error, msg ...interface{}) { - doLog(ctx, inner, log.Severity_Debug, msg...) + doLog(ctx, inner, log.Severity_Error, msg...) } func doLog(ctx context.Context, inner error, severity log.Severity, msg ...interface{}) {