summaryrefslogtreecommitdiff
path: root/CSharp
diff options
context:
space:
mode:
Diffstat (limited to 'CSharp')
-rw-r--r--CSharp/Ivy/IvyProbeConsole/IvyProbeConsole.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/CSharp/Ivy/IvyProbeConsole/IvyProbeConsole.cs b/CSharp/Ivy/IvyProbeConsole/IvyProbeConsole.cs
index defb333..eac345d 100644
--- a/CSharp/Ivy/IvyProbeConsole/IvyProbeConsole.cs
+++ b/CSharp/Ivy/IvyProbeConsole/IvyProbeConsole.cs
@@ -12,6 +12,7 @@ namespace IvyProbeConsole
using System.Text.RegularExpressions;
using System.IO;
using System.Configuration;
+ using System.Diagnostics;
using IvyBus;
/// <summary> Console implementation of the ivyprobe test program.
@@ -277,11 +278,10 @@ namespace IvyProbeConsole
String s = client.ApplicationName + " sent" + args.ToString();
println(s);
}
-
+ [Conditional("DEBUG")]
private void traceDebug(String s)
{
- if (debug)
- System.Console.Out.WriteLine("-->Probe<-- " + s);
+ Trace.WriteLineIf(debug, "-->Probe<-- " + s);
}
private void println(String s)
{