Browse Source

setproctitle should not format hostname with @ anymore

Ask Solem 12 năm trước cách đây
mục cha
commit
e377d68257
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      celery/platforms.py

+ 1 - 1
celery/platforms.py

@@ -633,7 +633,7 @@ else:
 
         """
         if hostname:
-            progname = '{0}@{1}'.format(progname, hostname.split('.')[0])
+            progname = '{0}: {1}'.format(progname, hostname)
         return set_process_title(
             '{0}:{1}'.format(progname, current_process().name), info=info)