From c27fac903f3d5ae2b457f29f8212a15ea9977d6f Mon Sep 17 00:00:00 2001 From: dongwei <838456736@qq.com> Date: Tue, 12 Feb 2019 16:08:31 +0800 Subject: [PATCH] =?UTF-8?q?status=20=E7=94=9F=E6=88=90value=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Middleware/TunnelMiddleware.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Middleware/TunnelMiddleware.php b/src/Middleware/TunnelMiddleware.php index dee1598..c13cd14 100644 --- a/src/Middleware/TunnelMiddleware.php +++ b/src/Middleware/TunnelMiddleware.php @@ -49,7 +49,7 @@ class TunnelMiddleware 'monitor', 1, ['app' => env('APP_NAME'), 'status' => $status, 'env' => app()->environment()], - ['content' => $request->getContent()] + ['content' => $request->getContent(), 'status_value' => $status == 200 ? $status : -$status] ) ); app('rpc.logger')->info('record to influxdb', ['rs' => $database->writePoints($points, Database::PRECISION_SECONDS)]);