From b82d7cc807f7e5f1d56932636fd4e582956c0bc4 Mon Sep 17 00:00:00 2001 From: Meeshal kumar Date: Wed, 14 Feb 2024 21:32:47 +0530 Subject: [PATCH] feat: logging should also happen in testing --- src/GloERSClientFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GloERSClientFactory.php b/src/GloERSClientFactory.php index 53fcc71..11ba0d7 100644 --- a/src/GloERSClientFactory.php +++ b/src/GloERSClientFactory.php @@ -22,7 +22,7 @@ public static function factory( string $wsdl, LoggerInterface $logger = null ): GloERSClient { // enable logger only on local - if (getenv('APP_ENV') == 'local'){ + if (getenv('APP_ENV') == 'local' || getenv('APP_ENV') == 'testing'){ if ($logger === null) { $logger = new Logger('http', [new RotatingFileHandler('logs/mono.log')]);