mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
Add configurable channel queue_size for audit/logger webhook targets (#13819)
Also log all the missed events and logs instead of silently swallowing the events. Bonus: Extend the logger webhook to support mTLS similar to audit webhook target.
This commit is contained in:
@@ -374,7 +374,10 @@ func logIf(ctx context.Context, err error, errKind ...interface{}) {
|
||||
|
||||
// Iterate over all logger targets to send the log entry
|
||||
for _, t := range Targets() {
|
||||
t.Send(entry, entry.LogKind)
|
||||
if err := t.Send(entry, entry.LogKind); err != nil {
|
||||
LogAlwaysIf(context.Background(), fmt.Errorf("event(%v) was not sent to Logger target (%v): %v", entry, t, err), entry.LogKind)
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user