mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02: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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user