Add debug log for replacements.

This commit is contained in:
tastytea 2021-06-06 15:52:09 +02:00
parent 9067b387ef
commit 262aab6671
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 2 additions and 0 deletions

View File

@ -168,6 +168,8 @@ void cleanup_text(string &text)
pos = text.find('>', pos) + 1;
}
DEBUGLOG << "Replacing '" << text.substr(pos, endpos - pos)
<< "' with '" << replacement << "'.";
text.replace(pos, endpos - pos, replacement);
pos += replacement.length();
}