From b2dd059fa4e80b9f8f5dae681e6f1089a926b933 Mon Sep 17 00:00:00 2001 From: edmondlang Date: Wed, 3 Jan 2024 10:12:06 +0800 Subject: [PATCH] update logging for GuzzleShippingPortal --- app/Classes/General/Services/GuzzleShippingPortal.php | 3 +++ config/logging.php | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/app/Classes/General/Services/GuzzleShippingPortal.php b/app/Classes/General/Services/GuzzleShippingPortal.php index d753b260..2fed1e9a 100644 --- a/app/Classes/General/Services/GuzzleShippingPortal.php +++ b/app/Classes/General/Services/GuzzleShippingPortal.php @@ -2,6 +2,8 @@ namespace App\Classes\General\Services; +use Illuminate\Support\Facades\Log; + class GuzzleShippingPortal { public function execute($route, $requests) @@ -16,6 +18,7 @@ class GuzzleShippingPortal return $payload['data']; } catch (\Exception $exception) { Log::error($exception->getMessage()); + Log::channel('guzzleShippingPortal')->debug($exception->getMessage()); return []; } } diff --git a/config/logging.php b/config/logging.php index fb872693..d0d0a009 100644 --- a/config/logging.php +++ b/config/logging.php @@ -104,6 +104,10 @@ return [ 'path' => storage_path('logs/regenerateInvoice.log'), 'level' => 'info', ], + 'guzzleShippingPortal' => [ + 'driver' => 'errorlog', + 'level' => 'debug', + ], ], ];