优化DEBUG异常输出
This commit is contained in:
parent
c9cc8223d0
commit
fd2fbe791e
|
@ -35,6 +35,10 @@ namespace N_m3u8DL_RE.Common.Util
|
|||
{
|
||||
return JsonSerializer.Serialize(sList, Context.ListStreamSpec);
|
||||
}
|
||||
else if (o is IEnumerable<MediaSegment> mList)
|
||||
{
|
||||
return JsonSerializer.Serialize(mList, Context.IEnumerableMediaSegment);
|
||||
}
|
||||
return "{NOT SUPPORTED}";
|
||||
}
|
||||
|
||||
|
|
|
@ -9,6 +9,7 @@ using Spectre.Console;
|
|||
using System;
|
||||
using System.Collections.Concurrent;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
@ -116,7 +117,7 @@ namespace N_m3u8DL_RE.Downloader
|
|||
catch (Exception ex)
|
||||
{
|
||||
Logger.WarnMarkUp($"[grey]{ex.Message.EscapeMarkup()} retryCount: {retryCount}[/]");
|
||||
Logger.Debug(ex.ToString());
|
||||
Logger.Debug(url + " " + ex.ToString());
|
||||
if (retryCount-- > 0)
|
||||
{
|
||||
await Task.Delay(1000);
|
||||
|
|
Loading…
Reference in New Issue