Fixes issue where invalid log-replace statements cause test crash

This commit is contained in:
benbierens 2023-05-31 14:49:06 +02:00
parent 59692fafa3
commit 0ebe59ea2f
No known key found for this signature in database
GPG Key ID: FE44815D96D0A1AA
1 changed files with 1 additions and 0 deletions

View File

@ -54,6 +54,7 @@ namespace Logging
public void AddStringReplace(string from, string to) public void AddStringReplace(string from, string to)
{ {
if (string.IsNullOrWhiteSpace(from)) return;
replacements.Add(new BaseLogStringReplacement(from, to)); replacements.Add(new BaseLogStringReplacement(from, to));
} }