Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 9fd0c2d

Browse files
Removing extra log messages
1 parent 57fe7ef commit 9fd0c2d

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/GitHub.Api/Application/ApiClient.cs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -305,27 +305,24 @@ private async Task<IKeychainAdapter> GetValidatedKeychainAdapter(Connection keyc
305305
{
306306
if (keychain.HasKeys)
307307
{
308-
logger.Trace("LoadKeychainInternal: Loading");
309-
310308
var keychainAdapter = await keychain.Load(keychainConnection.Host);
311-
logger.Trace("LoadKeychainInternal: Loaded");
312309

313310
if (string.IsNullOrEmpty(keychainAdapter.Credential?.Username))
314311
{
315-
logger.Trace("LoadKeychainInternal: Username is empty");
312+
logger.Warning("LoadKeychainInternal: Username is empty");
316313
throw new TokenUsernameMismatchException(keychainConnection.Username);
317314
}
318315

319316
if (keychainAdapter.Credential.Username != keychainConnection.Username)
320317
{
321-
logger.Trace("LoadKeychainInternal: Token username does not match");
318+
logger.Warning("LoadKeychainInternal: Token username does not match");
322319
throw new TokenUsernameMismatchException(keychainConnection.Username, keychainAdapter.Credential.Username);
323320
}
324321

325322
return keychainAdapter;
326323
}
327324

328-
logger.Trace("LoadKeychainInternal: No keys to load");
325+
logger.Warning("LoadKeychainInternal: No keys to load");
329326
throw new KeychainEmptyException();
330327
}
331328

0 commit comments

Comments
 (0)