From 48fe527e855ac711b295a20eba3f5900823de212 Mon Sep 17 00:00:00 2001 From: Derek Finlinson Date: Mon, 1 Jul 2024 09:47:31 -0600 Subject: [PATCH] Pass in args separately --- Plugin/BasePluginContext.cs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/Plugin/BasePluginContext.cs b/Plugin/BasePluginContext.cs index 7503bf4..c2835b6 100644 --- a/Plugin/BasePluginContext.cs +++ b/Plugin/BasePluginContext.cs @@ -274,14 +274,7 @@ public void Trace(string message, params object[] args) // The duration since the last trace. var deltaMilliseconds = utcNow.Subtract(_previousTraceTime).TotalMilliseconds; - if (args.Length > 0) - { - TracingService.Trace($"[+{deltaMilliseconds:N0}ms] - {string.Format(message, args)}"); - } - else - { - TracingService.Trace($"[+{deltaMilliseconds:N0}ms] - {message}"); - } + TracingService.Trace($"[+{deltaMilliseconds:N0}ms] - {message}", args); _previousTraceTime = utcNow; }