From adc255d73c419bfc7fc8b1388e00e723ef34dc05 Mon Sep 17 00:00:00 2001 From: ArrayIterator <37867551+ArrayIterator@users.noreply.github.com> Date: Sun, 27 Oct 2024 11:21:03 +0700 Subject: [PATCH] Update Logger.php --- src/Logger/Logger.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Logger/Logger.php b/src/Logger/Logger.php index 2a19f12..6fc75fc 100644 --- a/src/Logger/Logger.php +++ b/src/Logger/Logger.php @@ -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;