From 987ed240747016cc447e2da01a78297531baf9f6 Mon Sep 17 00:00:00 2001 From: reven Date: Sat, 5 Feb 2022 16:39:30 +1300 Subject: [PATCH] cleaned up some logging --- BasicNodes/Functions/Function.cs | 4 ---- VideoNodes/VideoInfoHelper.cs | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/BasicNodes/Functions/Function.cs b/BasicNodes/Functions/Function.cs index 1f1981c8..623a51b6 100644 --- a/BasicNodes/Functions/Function.cs +++ b/BasicNodes/Functions/Function.cs @@ -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) diff --git a/VideoNodes/VideoInfoHelper.cs b/VideoNodes/VideoInfoHelper.cs index 9b01bad1..8652ec69 100644 --- a/VideoNodes/VideoInfoHelper.cs +++ b/VideoNodes/VideoInfoHelper.cs @@ -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 {