diff --git a/LogReaderFactory.php b/LogReaderFactory.php index 4cf3a29..24df7cd 100644 --- a/LogReaderFactory.php +++ b/LogReaderFactory.php @@ -26,7 +26,12 @@ public function make($source) switch ($source) { case 'file': - $testFilePath = StaticContainer::get('test.vars.logForReading'); + $testFilePath = ''; + try { + $testFilePath = StaticContainer::get('test.vars.logForReading'); + } catch (\Throwable $th) { + // Do nothing + } $path = $testFilePath ?: StaticContainer::get('log.file.filename'); return new File($path);