Adding console targets back into systemtarget log slice (#19398)

This commit is contained in:
Sveinn
2024-04-02 17:56:14 -05:00
committed by GitHub
parent 912bbb2f1d
commit ba46ee5dfa
2 changed files with 4 additions and 6 deletions

View File

@@ -395,8 +395,7 @@ func logIf(ctx context.Context, err error, errKind ...interface{}) {
if err == nil {
return
}
entry := errToEntry(ctx, err, errKind...)
sendLog(ctx, entry)
sendLog(ctx, errToEntry(ctx, err, errKind...))
}
func sendLog(ctx context.Context, entry log.Entry) {
@@ -421,8 +420,7 @@ func Event(ctx context.Context, msg string, args ...interface{}) {
if DisableErrorLog {
return
}
entry := logToEntry(ctx, fmt.Sprintf(msg, args...), EventKind)
sendLog(ctx, entry)
sendLog(ctx, logToEntry(ctx, fmt.Sprintf(msg, args...), EventKind))
}
// ErrCritical is the value panic'd whenever CriticalIf is called.