update logging for GuzzleShippingPortal

This commit is contained in:
edmondlang
2024-01-03 10:12:06 +08:00
parent 74c6ca7330
commit b2dd059fa4
2 changed files with 7 additions and 0 deletions
@@ -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 [];
}
}
+4
View File
@@ -104,6 +104,10 @@ return [
'path' => storage_path('logs/regenerateInvoice.log'),
'level' => 'info',
],
'guzzleShippingPortal' => [
'driver' => 'errorlog',
'level' => 'debug',
],
],
];