Skip to content

Commit

Permalink
Fixed dependency error
Browse files Browse the repository at this point in the history
  • Loading branch information
snake14 committed Jul 2, 2024
1 parent 62dd04c commit ba095d9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion LogReaderFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ba095d9

Please sign in to comment.