Skip to content

Commit 59819e2

Browse files
authored
Fix log severity (#3535)
1 parent 573fb4f commit 59819e2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

common/errors/errors.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,23 +151,23 @@ func LogInfo(ctx context.Context, msg ...interface{}) {
151151
}
152152

153153
func LogInfoInner(ctx context.Context, inner error, msg ...interface{}) {
154-
doLog(ctx, inner, log.Severity_Debug, msg...)
154+
doLog(ctx, inner, log.Severity_Info, msg...)
155155
}
156156

157157
func LogWarning(ctx context.Context, msg ...interface{}) {
158158
doLog(ctx, nil, log.Severity_Warning, msg...)
159159
}
160160

161161
func LogWarningInner(ctx context.Context, inner error, msg ...interface{}) {
162-
doLog(ctx, inner, log.Severity_Debug, msg...)
162+
doLog(ctx, inner, log.Severity_Warning, msg...)
163163
}
164164

165165
func LogError(ctx context.Context, msg ...interface{}) {
166166
doLog(ctx, nil, log.Severity_Error, msg...)
167167
}
168168

169169
func LogErrorInner(ctx context.Context, inner error, msg ...interface{}) {
170-
doLog(ctx, inner, log.Severity_Debug, msg...)
170+
doLog(ctx, inner, log.Severity_Error, msg...)
171171
}
172172

173173
func doLog(ctx context.Context, inner error, severity log.Severity, msg ...interface{}) {

0 commit comments

Comments
 (0)