Skip to content

Commit ad37b7b

Browse files
committed
Remove default handler when no handlers are set
1 parent 902c0c8 commit ad37b7b

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/Monolog/Logger.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -274,10 +274,6 @@ public function useMicrosecondTimestamps($micro)
274274
*/
275275
public function addRecord($level, $message, array $context = array())
276276
{
277-
if (!$this->handlers) {
278-
$this->pushHandler(new StreamHandler('php://stderr', static::DEBUG));
279-
}
280-
281277
$levelName = static::getLevelName($level);
282278

283279
// check if any handler will handle this message so we can return early and save cycles

0 commit comments

Comments
 (0)