Log replacement regex

This commit is contained in:
Mark McDowall 2022-06-25 23:23:13 -07:00
parent 35edef91c6
commit ab578566be
2 changed files with 6 additions and 0 deletions

View File

@ -561,6 +561,7 @@ namespace NzbDrone.Core.Parser
{ {
if (replace.TryReplace(ref releaseTitle)) if (replace.TryReplace(ref releaseTitle))
{ {
Logger.Trace($"Replace regex: {replace}");
Logger.Debug("Substituted with " + releaseTitle); Logger.Debug("Substituted with " + releaseTitle);
} }
} }

View File

@ -42,5 +42,10 @@ namespace NzbDrone.Core.Parser
input = _regex.Replace(input, _replacementFormat); input = _regex.Replace(input, _replacementFormat);
return result; return result;
} }
public override string ToString()
{
return _regex.ToString();
}
} }
} }