# HG changeset patch # User Ludovic Chabant # Date 1519797141 28800 # Node ID 587bccf72d754983ceab643b24133c4dd02ceaaa # Parent 41b7ce0d513193df354219653e098390b5f55af5 serve: Only tell about the admin panel if needed. diff -r 41b7ce0d5131 -r 587bccf72d75 piecrust/serving/wrappers.py --- a/piecrust/serving/wrappers.py Tue Feb 27 21:44:45 2018 -0800 +++ b/piecrust/serving/wrappers.py Tue Feb 27 21:52:21 2018 -0800 @@ -100,7 +100,7 @@ # Disable debugger PIN protection. os.environ['WERKZEUG_DEBUG_PIN'] = 'off' - if is_cmdline_mode: + if is_cmdline_mode and serve_admin: admin_url = 'http://%s:%s%s' % (host, port, '/pc-admin') logger.info("The administrative panel is available at: %s" % admin_url)