Browse Source

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

visuddhinanda 2 years ago
parent
commit
43ff48887a
1 changed files with 1 additions and 1 deletions
  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);