(request, **kwargs)
| 8 | |
| 9 | @plugin.subscribe("*") |
| 10 | def on_any_notification(request, **kwargs): |
| 11 | plugin.log("notification {}: {}".format(request.method, kwargs)) |
| 12 | if request.method == 'shutdown': |
| 13 | # A plugin which subscribes to shutdown is expected to exit itself. |
| 14 | sys.exit(0) |
| 15 | |
| 16 | |
| 17 | plugin.run() |