From d41bbe201c21f08d3550c1e23d5ba78644d660ed Mon Sep 17 00:00:00 2001 From: Pig Fang Date: Fri, 26 Jul 2019 15:58:13 +0800 Subject: [PATCH] Don't log when testing --- .env.testing | 1 + config/logging.php | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/.env.testing b/.env.testing index 635d5398..d4686546 100644 --- a/.env.testing +++ b/.env.testing @@ -28,6 +28,7 @@ MAIL_ENCRYPTION = ssl CACHE_DRIVER = array SESSION_DRIVER = array QUEUE_DRIVER = sync +LOG_CHANNEL = black-hole REDIS_HOST = 127.0.0.1 REDIS_PASSWORD = null diff --git a/config/logging.php b/config/logging.php index 902efafb..3f9d466d 100644 --- a/config/logging.php +++ b/config/logging.php @@ -65,6 +65,11 @@ return [ 'driver' => 'errorlog', 'level' => 'debug', ], + + 'black-hole' => [ + 'driver' => 'monolog', + 'handler' => Monolog\Handler\NullHandler::class, + ], ], ];