React to Logging API changes

This commit is contained in:
Brennan 2016-01-21 10:02:03 -08:00
parent 00ceeb0262
commit 297c72aa21
1 changed files with 2 additions and 2 deletions

View File

@ -119,7 +119,7 @@ namespace Microsoft.AspNetCore.Authentication.JwtBearer
}
catch (Exception ex)
{
Logger.LogInformation("Failed to validate the token: " + token, ex);
Logger.LogInformation(0, ex, "Failed to validate the token: " + token);
// Refresh the configuration for exceptions that may be caused by key rollovers. The user can also request a refresh in the event.
if (Options.RefreshOnIssuerKeyNotFound && ex.GetType().Equals(typeof(SecurityTokenSignatureKeyNotFoundException)))
@ -181,7 +181,7 @@ namespace Microsoft.AspNetCore.Authentication.JwtBearer
}
catch (Exception ex)
{
Logger.LogError("Exception occurred while processing message", ex);
Logger.LogError(0, ex, "Exception occurred while processing message");
var authenticationFailedContext = new AuthenticationFailedContext(Context, Options)
{