Fixes issue where invalid log-replace statements cause test crash
This commit is contained in:
parent
59692fafa3
commit
0ebe59ea2f
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue