Add eventbus listener information to the HTTP interface
This commit is contained in:
parent
0e379a2cb5
commit
117b8454c3
1 changed files with 4 additions and 0 deletions
|
@ -79,6 +79,10 @@ class RequestHandler(BaseHTTPRequestHandler):
|
|||
write("<input type='submit' value='set state' />")
|
||||
write("</form>")
|
||||
|
||||
# Describe event bus:
|
||||
for category in self.server.eventbus.listeners:
|
||||
write("Event {}: {} listeners<br />".format(category, len(self.server.eventbus.listeners[category])))
|
||||
|
||||
else:
|
||||
self.send_response(404)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue