Skip to content

Commit 1f25f9b

Browse files
authored
WhatFailureGroupHandler catches failures in method close (#1791)
1 parent 7c04005 commit 1f25f9b

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/Monolog/Handler/WhatFailureGroupHandler.php

+14
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,18 @@ public function handleBatch(array $records): void
6464
}
6565
}
6666
}
67+
68+
/**
69+
* {@inheritDoc}
70+
*/
71+
public function close(): void
72+
{
73+
foreach ($this->handlers as $handler) {
74+
try {
75+
$handler->close();
76+
} catch (\Throwable $e) {
77+
// What failure?
78+
}
79+
}
80+
}
6781
}

0 commit comments

Comments
 (0)