forked from github/pelican
Tell users they can use CTRL-C to stop web server
This knowledge was heretofore assumed but is better made explicit.
This commit is contained in:
parent
70c8d2a474
commit
569f8a080e
1 changed files with 2 additions and 1 deletions
|
|
@ -466,8 +466,9 @@ def listen(server, port, output, excqueue=None):
|
|||
excqueue.put(traceback.format_exception_only(type(e), e)[-1])
|
||||
return
|
||||
|
||||
logging.info("Serving at port %s, server %s.", port, server)
|
||||
try:
|
||||
print("\nServing site at: {}:{} - Tap CTRL-C to stop".format(
|
||||
server, port))
|
||||
httpd.serve_forever()
|
||||
except Exception as e:
|
||||
if excqueue is not None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue