mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-09 14:46:46 +02:00
Remove default handler when no handlers are set
This commit is contained in:
@@ -274,10 +274,6 @@ class Logger implements LoggerInterface
|
|||||||
*/
|
*/
|
||||||
public function addRecord($level, $message, array $context = array())
|
public function addRecord($level, $message, array $context = array())
|
||||||
{
|
{
|
||||||
if (!$this->handlers) {
|
|
||||||
$this->pushHandler(new StreamHandler('php://stderr', static::DEBUG));
|
|
||||||
}
|
|
||||||
|
|
||||||
$levelName = static::getLevelName($level);
|
$levelName = static::getLevelName($level);
|
||||||
|
|
||||||
// check if any handler will handle this message so we can return early and save cycles
|
// check if any handler will handle this message so we can return early and save cycles
|
||||||
|
Reference in New Issue
Block a user