# HG changeset patch
# User cin
# Date 1493853473 -10800
# Node ID babe55c34931de0a07e3919521a1f0171e7c0d5e
# Parent 6efb77590b15ca811be29ac1b35b1e67025cb21b
Trace logical operations in the correct channel
diff -r 6efb77590b15 -r babe55c34931 Implab/Diagnostics/Trace.cs
--- a/Implab/Diagnostics/Trace.cs Tue May 02 17:33:04 2017 +0300
+++ b/Implab/Diagnostics/Trace.cs Thu May 04 02:17:53 2017 +0300
@@ -29,6 +29,7 @@
/// Name.
[Conditional("TRACE")]
public static void StartLogicalOperation(string name) {
+ Channel.LogEvent(new TraceEvent(TraceContext.Instance.CurrentOperation, TraceEventType.OperationStarted, name));
TraceContext.Instance.StartLogicalOperation(name);
}
@@ -38,7 +39,7 @@
[Conditional("TRACE")]
public static void EndLogicalOperation() {
var op = TraceContext.Instance.EndLogicalOperation();
- LogChannel.Default.LogEvent(new TraceEvent(op, TraceEventType.OperationCompleted, String.Format("-{0} : {1}ms", op.Name, op.Duration)));
+ Channel.LogEvent(new TraceEvent(op, TraceEventType.OperationCompleted, String.Format("-{0} : {1}ms", op.Name, op.Duration)));
}
///
diff -r 6efb77590b15 -r babe55c34931 Implab/Diagnostics/TraceContext.cs
--- a/Implab/Diagnostics/TraceContext.cs Tue May 02 17:33:04 2017 +0300
+++ b/Implab/Diagnostics/TraceContext.cs Thu May 04 02:17:53 2017 +0300
@@ -48,7 +48,7 @@
}
public void StartLogicalOperation(string name) {
- LogChannel.Default.LogEvent(new TraceEvent(TraceContext.Instance.CurrentOperation, TraceEventType.OperationStarted, name));
+ //LogChannel.Default.LogEvent(new TraceEvent(TraceContext.Instance.CurrentOperation, TraceEventType.OperationStarted, name));
m_current.BeginLogicalOperation(name);
}