Skip to content

Commit

Permalink
Pass in args separately
Browse files Browse the repository at this point in the history
  • Loading branch information
Derek Finlinson committed Jul 1, 2024
1 parent 087178f commit 48fe527
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions Plugin/BasePluginContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 48fe527

Please sign in to comment.