Skip to content

Commit

Permalink
Updated logging extension to remove the period on ValidationFailed
Browse files Browse the repository at this point in the history
_tokenValidationFailed format string includes the JWT token followed by a period, which if a dev troubleshooting copies incorrectly to the EOL will make the JWT invalid. 

Current: Failed to validate the token eyJhbGc.......HCwFmw.
Proposed: Failed to validate the token eyJhbGc.......HCwFmw
  • Loading branch information
muqeet-khan authored Nov 22, 2017
1 parent a9482d1 commit e2f6ad6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ static LoggingExtensions()
_tokenValidationFailed = LoggerMessage.Define<string>(
eventId: 1,
logLevel: LogLevel.Information,
formatString: "Failed to validate the token {Token}.");
formatString: "Failed to validate the token {Token}");
_tokenValidationSucceeded = LoggerMessage.Define(
eventId: 2,
logLevel: LogLevel.Information,
Expand Down

0 comments on commit e2f6ad6

Please sign in to comment.