1
0
Fork 0

[server] Bugfix displaying the logged in user in terminal log

This commit is contained in:
Starbeamrainbowlabs 2018-01-10 17:57:57 +00:00
parent fc46267003
commit 8969022fe3
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
1 changed files with 5 additions and 6 deletions

View File

@ -145,12 +145,6 @@ namespace Nibriboard.Client
public NibriClient(NibriboardApp inManager, WebsocketClient inClient)
{
Log.WriteLine(
"[Nibriboard/WebSocket] New NibriClient connected with id #{0} for user {1}.",
Id,
ConnectedUser != null ? ConnectedUser.Username : "Anonymous"
);
manager = inManager;
connection = inClient;
@ -158,6 +152,11 @@ namespace Nibriboard.Client
connection.OnDisconnection += handleDisconnection;
connection.OnTextMessage += handleMessage;
Log.WriteLine(
"[Nibriboard/WebSocket] New NibriClient connected with id #{0} for user {1}.",
Id,
ConnectedUser != null ? ConnectedUser.Username : "Anonymous"
);
}
private async Task handleMessage(object sender, TextMessageEventArgs eventArgs)