Updated logging extension to remove the period on ValidationFailed

_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
This commit is contained in:
Muqeet Khan 2017-11-22 13:04:54 -06:00 committed by GitHub
parent a9482d1d03
commit e2f6ad6169
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ namespace Microsoft.Extensions.Logging
_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,