summaryrefslogtreecommitdiff
path: root/pecan/commands
diff options
context:
space:
mode:
authorRyan Petrello <lists@ryanpetrello.com>2012-03-15 15:12:27 -0700
committerRyan Petrello <lists@ryanpetrello.com>2012-03-15 15:12:27 -0700
commit31fe5fb4373e474e366b2552141ba954a3dfda88 (patch)
tree72578187977c86fef6551faabc67aaa261280334 /pecan/commands
parentd01be07aad33e506f661b220550b85234257908d (diff)
downloadpecan-31fe5fb4373e474e366b2552141ba954a3dfda88.tar.gz
Improving `pecan serve` output.
Diffstat (limited to 'pecan/commands')
-rw-r--r--pecan/commands/serve.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pecan/commands/serve.py b/pecan/commands/serve.py
index 3d38ab9..a947348 100644
--- a/pecan/commands/serve.py
+++ b/pecan/commands/serve.py
@@ -1,6 +1,7 @@
"""
Serve command for Pecan.
"""
+import os
from pecan.commands import BaseCommand
@@ -24,6 +25,7 @@ class ServeCommand(BaseCommand):
from wsgiref.simple_server import make_server
host, port = conf.server.host, int(conf.server.port)
srv = make_server(host, port, app)
+ print 'Starting server in PID %s' % os.getpid()
if host == '0.0.0.0':
print 'serving on 0.0.0.0:%s, view at http://127.0.0.1:%s' % \
(port, port)