mirror of
https://github.com/minio/minio.git
synced 2025-02-25 04:19:13 -05:00
Adding console targets back into systemtarget log slice (#19398)
This commit is contained in:
parent
912bbb2f1d
commit
ba46ee5dfa
@ -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.
|
||||
|
@ -192,8 +192,8 @@ func updateHTTPTargets(ctx context.Context, cfgs map[string]http.Config, targetL
|
||||
}
|
||||
}
|
||||
|
||||
oldTargets := make([]Target, len(*targetList))
|
||||
copy(oldTargets, *targetList)
|
||||
oldTargets, others := splitTargets(*targetList, types.TargetHTTP)
|
||||
newWebhooks = append(newWebhooks, others...)
|
||||
|
||||
for i := range oldTargets {
|
||||
currentTgt, ok := oldTargets[i].(*http.Target)
|
||||
|
Loading…
x
Reference in New Issue
Block a user