Post log messages to Matrix #6
1 Participants
Due Date
Notifications
Total Time Spent: 2 hours 21 minutes
eric
2 hours 21 minutes
No due date set.
Dependencies
No dependencies set.
Reference: Finance/kraken-bot#6
Reference in New Issue
Block a user
Initial attempt to add matrix-nio to a logging module
@@ -0,0 +6,4 @@class MatrixHandler(logging.Handler):def __init__(self, url, user_id, user_password, room_id):super().__init__()self.client = AsyncClient(url, user_id)AsyncClientwill need to be executed like so:As such, it will need to be instantiated and started elsewhere with the necessary values passed in via parameters.
The
HttpClientwas used instead. Fortunately, the interface was compatible.This is still an issue. The Matrix logger likely needs to be redesigned.
Preliminary design has been finalized, testing is needed.