diff Implab/Diagnostics/TraceEvent.cs @ 219:cc1baf7c8bd9 v2

fixed trace
author cin
date Thu, 18 May 2017 16:53:14 +0300
parents ea485487a424
children
line wrap: on
line diff
--- a/Implab/Diagnostics/TraceEvent.cs	Thu May 04 02:17:53 2017 +0300
+++ b/Implab/Diagnostics/TraceEvent.cs	Thu May 18 16:53:14 2017 +0300
@@ -41,7 +41,7 @@
         }
 
         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));
         }
     }
 }