# HG changeset patch # User cin # Date 2017-05-18 13:53:14 # Node ID cc1baf7c8bd97ceb04e261b67421cbbedb960734 # Parent babe55c34931de0a07e3919521a1f0171e7c0d5e fixed trace diff --git a/Implab/Diagnostics/TraceEvent.cs b/Implab/Diagnostics/TraceEvent.cs --- a/Implab/Diagnostics/TraceEvent.cs +++ b/Implab/Diagnostics/TraceEvent.cs @@ -41,7 +41,7 @@ namespace Implab.Diagnostics { } public static TraceEvent Create(LogicalOperation operation, TraceEventType type, string format, params object[] args) { - return new TraceEvent(operation, type, format == null ? String.Empty : String.Format(format, args)); + return new TraceEvent(operation, type, format == null ? String.Empty : args == null || args.Length == 0 ? format : String.Format(format, args)); } } }