浏览代码

[desktop] Improve printing of runcherrypyserver options

Erick Tryzelaar 10 年之前
父节点
当前提交
09dbfcb90b
共有 1 个文件被更改,包括 7 次插入2 次删除
  1. 7 2
      desktop/core/src/desktop/management/commands/runcherrypyserver.py

+ 7 - 2
desktop/core/src/desktop/management/commands/runcherrypyserver.py

@@ -16,7 +16,10 @@
 # limitations under the License.
 # a thirdparty project
 
-import sys, logging
+import logging
+import pprint
+import sys
+
 from django.core.management.base import BaseCommand
 
 from desktop import conf
@@ -112,7 +115,9 @@ def runcpserver(argset=[], **kwargs):
         return
 
     # Start the webserver
-    print _('starting server with options %(options)s') % {'options': options}
+    print _('starting server with options:')
+    pprint.pprint(options)
+
     start_server(options)