Add Additional Logging/Diagnostics For Weird Status Behaviours
This commit is contained in:
parent
36a7b1f49b
commit
5ff5d63882
@ -111,9 +111,12 @@ namespace qtc_api.Hubs
|
|||||||
|
|
||||||
Log($"Updating Status\n{JsonSerializer.Serialize(statusDto)}");
|
Log($"Updating Status\n{JsonSerializer.Serialize(statusDto)}");
|
||||||
|
|
||||||
await _userService.UpdateStatus(statusDto);
|
var res = await _userService.UpdateStatus(statusDto);
|
||||||
|
|
||||||
await Clients.All.SendAsync("RefreshUserLists");
|
if (res != null && res.Success && res.Data != null)
|
||||||
|
Log($"Status Was Set To {res.Data.Status} On User {user.Username}");
|
||||||
|
else
|
||||||
|
Log($"Something Went Wrong Setting The Status On User {user.Username}");
|
||||||
}
|
}
|
||||||
|
|
||||||
[HubMethodName("JoinLobby")]
|
[HubMethodName("JoinLobby")]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user