Browse Source

Fix CELERYD_HIJACK_ROOT_LOGGER description

`CELERYD_HIJACK_ROOT_LOGGER` doesn't actually reset e.g. logger
levels and filters, or handlers and formatters attached to loggers
other than the root logger. Just removes any handlers already
attached to the root logger. This says so more clearly.
Gunnlaugur Thor Briem 12 năm trước cách đây
mục cha
commit
df77613335
1 tập tin đã thay đổi với 4 bổ sung5 xóa
  1. 4 5
      docs/configuration.rst

+ 4 - 5
docs/configuration.rst

@@ -1387,11 +1387,10 @@ CELERYD_HIJACK_ROOT_LOGGER
 
 .. versionadded:: 2.2
 
-By default any previously configured logging options will be reset,
-because the Celery programs "hijacks" the root logger.
-
-If you want to customize your own logging then you can disable
-this behavior.
+By default any previously configured handlers on the root logger will be
+removed. If you want to customize your own logging handlers, then you
+can disable this behavior by setting
+`CELERYD_HIJACK_ROOT_LOGGER = False`.
 
 .. note::