mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-22 14:04:01 +00:00
update logging for GuzzleShippingPortal
This commit is contained in:
@@ -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 [];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -104,6 +104,10 @@ return [
|
||||
'path' => storage_path('logs/regenerateInvoice.log'),
|
||||
'level' => 'info',
|
||||
],
|
||||
'guzzleShippingPortal' => [
|
||||
'driver' => 'errorlog',
|
||||
'level' => 'debug',
|
||||
],
|
||||
],
|
||||
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user