Jelajahi Sumber

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

visuddhinanda 2 tahun lalu
induk
melakukan
43ff48887a
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      app/Http/Api/Mq.php

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

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