Fix log severity (#3535)

This commit is contained in:
abvf 2024-07-15 15:34:04 +03:30 committed by GitHub
parent 573fb4f643
commit 59819e2a1b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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