mirror of
https://github.com/minio/minio.git
synced 2025-11-09 21:49:46 -05:00
fix: filter rest errors and logs returned (#16019)
This commit is contained in:
@@ -83,7 +83,7 @@ func (l Info) Mask() uint64 {
|
||||
// SendLog returns true if log pertains to node specified in args.
|
||||
func (l Info) SendLog(node string, logKind madmin.LogMask) bool {
|
||||
if logKind.Contains(l.LogKind.LogMask()) {
|
||||
return node == "" || strings.EqualFold(node, l.NodeName)
|
||||
return node == "" || strings.EqualFold(node, l.NodeName) && !l.Time.IsZero()
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user