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 {
|
if err == nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
entry := errToEntry(ctx, err, errKind...)
|
sendLog(ctx, errToEntry(ctx, err, errKind...))
|
||||||
sendLog(ctx, entry)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func sendLog(ctx context.Context, entry log.Entry) {
|
func sendLog(ctx context.Context, entry log.Entry) {
|
||||||
@ -421,8 +420,7 @@ func Event(ctx context.Context, msg string, args ...interface{}) {
|
|||||||
if DisableErrorLog {
|
if DisableErrorLog {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
entry := logToEntry(ctx, fmt.Sprintf(msg, args...), EventKind)
|
sendLog(ctx, logToEntry(ctx, fmt.Sprintf(msg, args...), EventKind))
|
||||||
sendLog(ctx, entry)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ErrCritical is the value panic'd whenever CriticalIf is called.
|
// 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))
|
oldTargets, others := splitTargets(*targetList, types.TargetHTTP)
|
||||||
copy(oldTargets, *targetList)
|
newWebhooks = append(newWebhooks, others...)
|
||||||
|
|
||||||
for i := range oldTargets {
|
for i := range oldTargets {
|
||||||
currentTgt, ok := oldTargets[i].(*http.Target)
|
currentTgt, ok := oldTargets[i].(*http.Target)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user