reportingEnhance

This commit is contained in:
SpudGunMan
2025-01-05 20:18:02 -08:00
parent f0a93b0191
commit 5829cdcef9
2 changed files with 12 additions and 3 deletions

View File

@@ -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)
```
```
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

View File

@@ -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()
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)