add logging
This commit is contained in:
parent
7260d99d9e
commit
a046f3e0da
3 changed files with 25 additions and 3 deletions
|
|
@ -95,6 +95,7 @@ class VectorHandler(BaseHTTPRequestHandler):
|
|||
except Exception as e:
|
||||
self.send_error(500, str(e))
|
||||
def log_message(self, format, *args):
|
||||
pass # Suppress logs
|
||||
sys.stdout.write("%s - - [%s] %s\n" % (self.address_string(), self.log_date_time_string(), format % args))
|
||||
sys.stdout.flush()
|
||||
|
||||
HTTPServer(("0.0.0.0", int(os.getenv("PORT", 8080))), VectorHandler).serve_forever()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue