Print status line on startup
authorGuido Günther <agx@sigxcpu.org>
Sat, 13 Feb 2016 12:55:45 +0000 (13:55 +0100)
committerGuido Günther <agx@sigxcpu.org>
Sun, 28 Feb 2016 18:21:08 +0000 (19:21 +0100)
This makes it simple to check if calypso is listening on the right
interface/port

calypso.py

index 7d8c31b31bac50bdd08e634eb61de3613970a557..78baa91d0433c466dab167be661b9c4257f2a1c5 100755 (executable)
@@ -132,6 +132,9 @@ if options.import_dest:
 def run_server():
     try:
         # Launch server
+        log.debug("Starting HTTP%s server on %s:%d" % ("S" if options.ssl else "",
+                                                       options.host if options.host else "*",
+                                                       options.port))
         server_class = calypso.HTTPSServer if options.ssl else calypso.HTTPServer
         server = server_class(
             (options.host, options.port), calypso.CollectionHTTPHandler)