cqpCow 1 năm trước cách đây
mục cha
commit
9400bd36c3
1 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 3 2
      app/Http/Middleware/RequestLog.php

+ 3 - 2
app/Http/Middleware/RequestLog.php

@@ -31,8 +31,9 @@ class RequestLog
             $ip = '0.0.0.0';
         }
         $params = $request->all();
-        Log::channel('request')->info('request', ['param'=>json_encode($params),'ip' => $ip,'uri'=>$request->path()]);
-
+        if($request->path() != 'api/reportCount'){
+            Log::channel('request')->info('request', ['param'=>json_encode($params),'ip' => $ip,'uri'=>$request->path()]);
+        }
         return $next($request);
     }
 }