changeset 219:cc1baf7c8bd9 v2

fixed trace
author cin
date Thu, 18 May 2017 16:53:14 +0300
parents babe55c34931
children 42814145d472
files Implab/Diagnostics/TraceEvent.cs
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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));
         }
     }
 }