Explorar el Código

log::info at exit

visuddhinanda hace 11 meses
padre
commit
6d57730fc3
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      api-v8/app/Http/Api/Mq.php

+ 2 - 2
api-v8/app/Http/Api/Mq.php

@@ -158,7 +158,7 @@ class Mq
                 }
                 }
 
 
                 if (\App\Tools\Tools::isStop()) {
                 if (\App\Tools\Tools::isStop()) {
-                    Log::debug('mq worker: .stop file exist. cancel the consumer.');
+                    Log::info('mq worker: .stop file exist. cancel the consumer.');
                     $message->getChannel()->basic_cancel($message->getConsumerTag());
                     $message->getChannel()->basic_cancel($message->getConsumerTag());
                 }
                 }
             }
             }
@@ -174,7 +174,7 @@ class Mq
                             $GLOBALS[$key] = 1;
                             $GLOBALS[$key] = 1;
                         }
                         }
                         if ($GLOBALS[$key] >= $value) {
                         if ($GLOBALS[$key] >= $value) {
-                            Log::debug("mq exit queue={$queue} loop=" . $GLOBALS[$key]);
+                            Log::info("mq exit queue={$queue} loop=" . $GLOBALS[$key]);
                             $message->getChannel()->basic_cancel($message->getConsumerTag());
                             $message->getChannel()->basic_cancel($message->getConsumerTag());
                         }
                         }
                     }
                     }