Skip to content

Commit

Permalink
Update Logger.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ArrayIterator authored Oct 27, 2024
1 parent 9678f5e commit adc255d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Logger/Logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,10 @@ protected function configureLogger() : Monolog
$port = !is_int($host) ? 6379 : $port;
$host = $adapterOptions['host'] ?? null;
$host = is_string($host) ? (trim($host)?:null) : null;
$host = $host??'127.0.0.1';
$port = $port??6379;
$adapterOptions['port'] = $port;
$adapterOptions['host'] = $host??'127.0.0.1';
$adapterOptions['host'] = $host;
$name = $adapterOptions['name']??'log';
$name = !is_string($name) ? 'log' : $name;
$timeout = $adapterOptions['timeout']??0;
Expand Down

0 comments on commit adc255d

Please sign in to comment.