mirror of
https://github.com/fHDHR/fHDHR_NextPVR.git
synced 2025-12-06 05:46:58 -05:00
commit
373b5c61a1
@ -39,10 +39,10 @@ class fHDHR_HTTP_Server():
|
|||||||
self.app.after_request(self.after_request)
|
self.app.after_request(self.after_request)
|
||||||
|
|
||||||
def before_request(self):
|
def before_request(self):
|
||||||
self.fhdhr.logger.debug("")
|
self.fhdhr.logger.debug("Client %s requested %s Opening" % (request.method, request.path))
|
||||||
|
|
||||||
def after_request(self, response):
|
def after_request(self, response):
|
||||||
self.fhdhr.logger.debug("")
|
self.fhdhr.logger.debug("Client %s requested %s Closing" % (request.method, request.path))
|
||||||
return response
|
return response
|
||||||
|
|
||||||
def add_endpoints(self, index_list, index_name):
|
def add_endpoints(self, index_list, index_name):
|
||||||
@ -80,7 +80,7 @@ class fHDHR_HTTP_Server():
|
|||||||
self.http = WSGIServer((
|
self.http = WSGIServer((
|
||||||
self.fhdhr.config.dict["fhdhr"]["address"],
|
self.fhdhr.config.dict["fhdhr"]["address"],
|
||||||
int(self.fhdhr.config.dict["fhdhr"]["port"])
|
int(self.fhdhr.config.dict["fhdhr"]["port"])
|
||||||
), self.app.wsgi_app)
|
), self.app.wsgi_app, log=self.fhdhr.logger)
|
||||||
try:
|
try:
|
||||||
self.http.serve_forever()
|
self.http.serve_forever()
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user