1
0
Fork 0
mirror of https://github.com/sbrl/Nibriboard.git synced 2018-01-10 21:33:49 +00:00

[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

View file

@ -145,12 +145,6 @@ namespace Nibriboard.Client
public NibriClient(NibriboardApp inManager, WebsocketClient inClient) 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; manager = inManager;
connection = inClient; connection = inClient;
@ -158,6 +152,11 @@ namespace Nibriboard.Client
connection.OnDisconnection += handleDisconnection; connection.OnDisconnection += handleDisconnection;
connection.OnTextMessage += handleMessage; 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) private async Task handleMessage(object sender, TextMessageEventArgs eventArgs)