visuddhinanda 1 год назад
Родитель
Сommit
c6ab50f43f
1 измененных файлов с 4 добавлено и 3 удалено
  1. 4 3
      api-v8/app/Http/Api/Mq.php

+ 4 - 3
api-v8/app/Http/Api/Mq.php

@@ -133,7 +133,8 @@ class Mq
                         throw new \Exception('task error');
                     }
                 } catch (\Exception $e) {
-                    Log::error('mq worker exception', [
+                    Log::error("mq worker {$queue} exception", [
+                        'queue' => $queue,
                         'message_id' => $message->get('message_id'),
                         'exception' => $e
                     ]);
@@ -215,8 +216,8 @@ class Mq
             try {
                 $channel->wait(null, false, $timeout);
             } catch (AMQPTimeoutException $e) {
-		    // ignore it
-	    }
+                // ignore it
+            }
         }
     }
 }