Explorar o código

Fix `UnicodeEncodeError` exception when `celery` is managed by `supervisord`

Codeb Fan %!s(int64=11) %!d(string=hai) anos
pai
achega
c5f1c1a6cd
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      celery/apps/worker.py

+ 2 - 2
celery/apps/worker.py

@@ -165,10 +165,10 @@ class Worker(WorkController):
 
         # Dump configuration to screen so we have some basic information
         # for when users sends bug reports.
-        print(''.join([
+        print(safe_str(''.join([
             string(self.colored.cyan(' \n', self.startup_info())),
             string(self.colored.reset(self.extra_info() or '')),
-        ]), file=sys.__stdout__)
+        ])), file=sys.__stdout__)
         self.set_process_status('-active-')
         self.install_platform_tweaks(self)