Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Commit

Permalink
Hide userid in log
Browse files Browse the repository at this point in the history
  • Loading branch information
misandrie committed Oct 23, 2023
1 parent 87b872d commit acc128a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions SS14.Launcher/Models/Logins/LoginManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -153,19 +153,19 @@ private async Task UpdateSingleAccountStatus(ActiveLoginData data)
{
// Token expired or whatever?
data.SetStatus(AccountLoginStatus.Expired);
Log.Debug("Token for {login} expired while refreshing it", data.LoginInfo);
Log.Debug("Token for {login} expired while refreshing it", data.LoginInfo.Username);
}
else
{
Log.Debug("Refreshed token for {login}", data.LoginInfo);
Log.Debug("Refreshed token for {login}", data.LoginInfo.Username);
data.LoginInfo.Token = newTokenHopefully.Value;
data.SetStatus(AccountLoginStatus.Available);
}
}
else if (data.Status == AccountLoginStatus.Unsure)
{
var valid = await _authApi.CheckTokenAsync(data.LoginInfo.Token.Token);
Log.Debug("Token for {login} still valid? {valid}", data.LoginInfo, valid);
Log.Debug("Token for {login} still valid? {valid}", data.LoginInfo.Username, valid);
data.SetStatus(valid ? AccountLoginStatus.Available : AccountLoginStatus.Expired);
}
}
Expand All @@ -183,7 +183,7 @@ public ActiveLoginData(LoginInfo info) : base(info)
public void SetStatus(AccountLoginStatus status)
{
this.RaiseAndSetIfChanged(ref _status, status, nameof(Status));
Log.Debug("Setting status for login {account} to {status}", LoginInfo, status);
Log.Debug("Setting status for login {account} to {status}", LoginInfo.Username, status);
}
}
}

0 comments on commit acc128a

Please sign in to comment.