Explorar o código

Log::error 上下文应该放在数组里

visuddhinanda %!s(int64=2) %!d(string=hai) anos
pai
achega
43ff48887a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/Http/Api/Mq.php

+ 1 - 1
app/Http/Api/Mq.php

@@ -116,7 +116,7 @@ class Mq
                     }
                 } catch (\Exception $e) {
                     // push to issues
-                    Log::error('mq worker exception', $e);
+                    Log::error('mq worker exception', ['exception'=>$e] );
                     $channelName = 'issues';
                     $channelIssues = $connection->channel();
                     $channelIssues->queue_declare($channelName, false, true, false, false);