Skip to content

Commit fe6526f

Browse files
committed
Fix command syntax for dotnet-sonarscanner
WE2-964 Signed-off-by: Sven Mitt <[email protected]>
1 parent 2c24ca6 commit fe6526f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/WebEid.Security/Validator/AuthTokenValidator.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public WebEidAuthToken Parse(string authToken)
9999
catch (Exception ex)
100100
{
101101
// Generally "log and rethrow" is an anti-pattern, but it fits with the surrounding logging style.
102-
this.logger?.LogWarning("Token parsing was interrupted:", ex);
102+
this.logger?.LogWarning(ex, "Token parsing was interrupted:");
103103
throw;
104104
}
105105
}
@@ -121,7 +121,7 @@ public Task<X509Certificate2> Validate(WebEidAuthToken authToken, string current
121121
catch (Exception ex)
122122
{
123123
// Generally "log and rethrow" is an anti-pattern, but it fits with the surrounding logging style.
124-
this.logger?.LogWarning("Token validation was interrupted:", ex);
124+
this.logger?.LogWarning(ex, "Token validation was interrupted:");
125125
throw;
126126
}
127127
}

0 commit comments

Comments
 (0)