cleaned up some logging

This commit is contained in:
reven
2022-02-05 16:39:30 +13:00
parent e90abb93fd
commit 987ed24074
2 changed files with 2 additions and 6 deletions

View File

@@ -34,12 +34,8 @@ namespace FileFlows.BasicNodes.Functions
if (string.IsNullOrEmpty(Code))
return -1; // no code, flow cannot continue doesnt know what to do
try
{
args.Logger?.DLog("Code: ", Environment.NewLine + new string('=', 40) + Environment.NewLine + Code + Environment.NewLine + new string('=', 40));
long fileSize = 0;
var fileInfo = new FileInfo(args.WorkingFile);
if (fileInfo.Exists)

View File

@@ -154,12 +154,12 @@ namespace FileFlows.VideoNodes
if (rgxDuration.IsMatch(info) && TimeSpan.TryParse(rgxDuration.Match(info).Value, out TimeSpan duration) && duration.TotalSeconds > 0)
{
vs.Duration = duration;
Logger?.ILog("Video stream duration:: " + vs.Duration);
Logger?.ILog("Video stream duration: " + vs.Duration);
}
else if (rgxDuration2.IsMatch(fullOutput) && TimeSpan.TryParse(rgxDuration2.Match(fullOutput).Value, out TimeSpan duration2) && duration2.TotalSeconds > 0)
{
vs.Duration = duration2;
Logger?.ILog("Video stream duration:: " + vs.Duration);
Logger?.ILog("Video stream duration: " + vs.Duration);
}
else
{