mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
Reduce debug output on ParseDateTimeGoLang() FormatExceptions
This commit is contained in:
@@ -735,9 +735,9 @@ namespace Jackett.Indexers
|
|||||||
var Date = DateTimeUtil.ParseDateTimeGoLang(Data, layout);
|
var Date = DateTimeUtil.ParseDateTimeGoLang(Data, layout);
|
||||||
Data = Date.ToString(DateTimeUtil.RFC1123ZPattern);
|
Data = Date.ToString(DateTimeUtil.RFC1123ZPattern);
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (FormatException ex)
|
||||||
{
|
{
|
||||||
logger.Debug(ex.ToString());
|
logger.Debug(ex.Message);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "regexp":
|
case "regexp":
|
||||||
|
@@ -290,9 +290,9 @@ namespace Jackett.Utils
|
|||||||
{
|
{
|
||||||
return DateTime.ParseExact(date, pattern, CultureInfo.InvariantCulture);
|
return DateTime.ParseExact(date, pattern, CultureInfo.InvariantCulture);
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (FormatException ex)
|
||||||
{
|
{
|
||||||
throw new Exception(string.Format("Error while parsing DateTime \"{0}\", using layout \"{1}\" ({2}): {3}", date, layout, pattern, ex.ToString()));
|
throw new FormatException(string.Format("Error while parsing DateTime \"{0}\", using layout \"{1}\" ({2}): {3}", date, layout, pattern, ex.Message));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user