Browse Source

Merge pull request #1036 from acdha/kinder-gentler-logging

Decrease log level for consumer connection retries
Ask Solem Hoel 12 năm trước cách đây
mục cha
commit
08f7c42a4c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      celery/worker/consumer.py

+ 1 - 1
celery/worker/consumer.py

@@ -178,7 +178,7 @@ class Consumer(object):
             except self.connection_errors + self.channel_errors:
                 maybe_shutdown()
                 if ns.state != CLOSE and self.connection:
-                    error(CONNECTION_RETRY, exc_info=True)
+                    warn(CONNECTION_RETRY, exc_info=True)
                     ns.restart(self)
 
     def shutdown(self):