Add logging on event
This commit is contained in:
parent
0564e556d8
commit
4a2c9c9c3f
|
@ -41,6 +41,10 @@ async function run() {
|
|||
|
||||
Webserver.begin(appservice, store);
|
||||
|
||||
appservice.on("room.event", (roomId, event) => {
|
||||
LogService.info("event", `Received event ${event["event_id"]} (${event["type"]}) from ${event["sender"]} in ${roomId}`);
|
||||
});
|
||||
|
||||
appservice.on("room.message", (roomId, event) => {
|
||||
LogService.info("message", `Received event: ${event['type']}`);
|
||||
|
||||
|
|
Loading…
Reference in a new issue