This repository was archived by the owner on Dec 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
src/GitHub.Api/Application Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -305,27 +305,24 @@ private async Task<IKeychainAdapter> GetValidatedKeychainAdapter(Connection keyc
305
305
{
306
306
if ( keychain . HasKeys )
307
307
{
308
- logger . Trace ( "LoadKeychainInternal: Loading" ) ;
309
-
310
308
var keychainAdapter = await keychain . Load ( keychainConnection . Host ) ;
311
- logger . Trace ( "LoadKeychainInternal: Loaded" ) ;
312
309
313
310
if ( string . IsNullOrEmpty ( keychainAdapter . Credential ? . Username ) )
314
311
{
315
- logger . Trace ( "LoadKeychainInternal: Username is empty" ) ;
312
+ logger . Warning ( "LoadKeychainInternal: Username is empty" ) ;
316
313
throw new TokenUsernameMismatchException ( keychainConnection . Username ) ;
317
314
}
318
315
319
316
if ( keychainAdapter . Credential . Username != keychainConnection . Username )
320
317
{
321
- logger . Trace ( "LoadKeychainInternal: Token username does not match" ) ;
318
+ logger . Warning ( "LoadKeychainInternal: Token username does not match" ) ;
322
319
throw new TokenUsernameMismatchException ( keychainConnection . Username , keychainAdapter . Credential . Username ) ;
323
320
}
324
321
325
322
return keychainAdapter ;
326
323
}
327
324
328
- logger . Trace ( "LoadKeychainInternal: No keys to load" ) ;
325
+ logger . Warning ( "LoadKeychainInternal: No keys to load" ) ;
329
326
throw new KeychainEmptyException ( ) ;
330
327
}
331
328
You can’t perform that action at this time.
0 commit comments