Print out a message when logging in.
This commit is contained in:
parent
6822084d59
commit
f9971ce443
2 changed files with 8 additions and 0 deletions
|
@ -79,6 +79,10 @@ class MatrixLoginEvent(MatrixEvent):
|
|||
self.server.user_id = self.user_id
|
||||
self.server.client.access_token = self.access_token
|
||||
|
||||
message = "{prefix}matrix: Logged in as {user}".format(
|
||||
prefix=W.prefix("network"), user=self.user_id)
|
||||
|
||||
W.prnt(self.server.server_buffer, message)
|
||||
self.server.sync()
|
||||
|
||||
@classmethod
|
||||
|
|
|
@ -377,6 +377,10 @@ class MatrixServer:
|
|||
self.device_name)
|
||||
self.send_or_queue(message)
|
||||
|
||||
msg = "{prefix}matrix: Logging in...".format(prefix=W.prefix("network"))
|
||||
|
||||
W.prnt(self.server_buffer, msg)
|
||||
|
||||
def _print_message_error(self, message):
|
||||
server_buffer_prnt(self,
|
||||
("{prefix}Unhandled {status_code} error, please "
|
||||
|
|
Loading…
Add table
Reference in a new issue