mirror of
https://github.com/Jackett/Jackett
synced 2024-12-27 10:18:55 +00:00
cardigannindexer: add optional arg to strdump
when you are using multiple strdumps it is useful to tag them with an unique eyecatcher so you can tell them apart in the enhanced log.
This commit is contained in:
parent
324afbcd0f
commit
392a0d7b7e
1 changed files with 6 additions and 1 deletions
|
@ -1102,7 +1102,12 @@ namespace Jackett.Common.Indexers
|
|||
case "strdump":
|
||||
// for debugging
|
||||
var DebugData = Data.Replace("\r", "\\r").Replace("\n", "\\n").Replace("\xA0", "\\xA0");
|
||||
logger.Debug(string.Format("CardigannIndexer ({0}): strdump: {1}", ID, DebugData));
|
||||
var strTag = (string)Filter.Args;
|
||||
if (strTag != null)
|
||||
strTag = string.Format("({0}):", strTag);
|
||||
else
|
||||
strTag = ":";
|
||||
logger.Debug(string.Format("CardigannIndexer ({0}): strdump{1} {2}", ID, strTag, DebugData));
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue