Show More
@@ -118,7 +118,12 b" celery_app.user_options['preload'].add(p" | |||
|
118 | 118 | |
|
119 | 119 | @signals.setup_logging.connect |
|
120 | 120 | def setup_logging_callback(**kwargs): |
|
121 | ||
|
122 | if 'RC_INI_FILE' in celery_app.conf: | |
|
121 | 123 | ini_file = celery_app.conf['RC_INI_FILE'] |
|
124 | else: | |
|
125 | ini_file = celery_app.user_options['RC_INI_FILE'] | |
|
126 | ||
|
122 | 127 | setup_logging(ini_file) |
|
123 | 128 | |
|
124 | 129 | |
@@ -137,7 +142,11 b' def on_preload_parsed(options, **kwargs)' | |||
|
137 | 142 | options = parse_ini_vars(ini_vars) |
|
138 | 143 | |
|
139 | 144 | celery_app.conf['RC_INI_FILE'] = ini_file |
|
145 | celery_app.user_options['RC_INI_FILE'] = ini_file | |
|
146 | ||
|
140 | 147 | celery_app.conf['RC_INI_OPTIONS'] = options |
|
148 | celery_app.user_options['RC_INI_OPTIONS'] = options | |
|
149 | ||
|
141 | 150 | setup_logging(ini_file) |
|
142 | 151 | |
|
143 | 152 |
General Comments 0
You need to be logged in to leave comments.
Login now