diff --git a/logs/README.md b/logs/README.md index e18eccc..1413dc4 100644 --- a/logs/README.md +++ b/logs/README.md @@ -23,4 +23,7 @@ To change the stdout (what you see on the console) logging level (default is DEB ``` # Set level for stdout handler stdout_handler.setLevel(logging.INFO) -``` \ No newline at end of file +``` + +There is a web-server module you can run `python modules/web.py` from the project root directory and it will serve up the web content. +by default. http://localhost:8420 \ No newline at end of file diff --git a/modules/web.py b/modules/web.py index 5cfa42d..2ae2359 100644 --- a/modules/web.py +++ b/modules/web.py @@ -11,7 +11,7 @@ import http.server PORT = 8420 # set webRoot index.html location -webRoot = "../etc/www" +webRoot = "etc/www" # Set to True to enable logging sdtout webServerLogs = False @@ -43,4 +43,10 @@ if SSL: exit(1) httpd.socket = ctx.wrap_socket(httpd.socket, server_side=True) -httpd.serve_forever() \ No newline at end of file +print("Serving reports at http://localhost:", PORT) +print("Press ^C to quit.") +if not webServerLogs: + print("Server Logs are disabled") +# Serve forever, that is until the user interrupts the process +httpd.serve_forever() +exit(0)