[Calypso] [PATCH] Print status line on startup
Guido Günther
agx at sigxcpu.org
Sat Feb 13 04:56:47 PST 2016
This makes it simple to check if calypso is listening on the right
interface/port
---
I ended up using lsof -i / curl too often to check for the right port and
whether HTTPS is actually enabled.
calypso.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/calypso.py b/calypso.py
index 7d8c31b..78baa91 100755
--- a/calypso.py
+++ b/calypso.py
@@ -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)
--
2.7.0
More information about the Calypso
mailing list