mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-29 01:13:59 +00:00
Laravel Vapor - Logs output minor amendments
This commit is contained in:
@@ -18,10 +18,12 @@ class LogRequestPathMiddleware
|
||||
*/
|
||||
public function handle(Request $request, Closure $next)
|
||||
{
|
||||
$method = $request->method();
|
||||
LogHelper::channel('request_path')->info('Request Method: ' . $method);
|
||||
$fullUrl = $request->fullUrl();
|
||||
LogHelper::channel('request_path')->info('Request URL: ' . $fullUrl);
|
||||
if(env('APP_ENV') !== 'local'){
|
||||
$method = $request->method();
|
||||
$fullUrl = $request->fullUrl();
|
||||
LogHelper::channel('request_path')->info('Request Method: ' . $method);
|
||||
LogHelper::channel('request_path')->info('Request URL: ' . $fullUrl);
|
||||
}
|
||||
|
||||
if ($request->isMethod('post')) {
|
||||
$payload = $request->all();
|
||||
|
||||
Reference in New Issue
Block a user