Index: /trunk/FACT++/src/DimServiceInfoList.cc
===================================================================
--- /trunk/FACT++/src/DimServiceInfoList.cc	(revision 13067)
+++ /trunk/FACT++/src/DimServiceInfoList.cc	(revision 13068)
@@ -676,13 +676,25 @@
     const string fmt = t->second.first;
 
+    // Avoid compiler warning of unused parameter
+    lout << flush;
+
     // Convert the user entered data according to the format string
     // into a data block which will be attached to the event
+#ifndef DEBUG
+    ostringstream sout;
+    const Converter conv(sout, fmt, false);
+#else
     const Converter conv(lout, fmt, false);
+#endif
     if (!conv)
         throw runtime_error("Couldn't properly parse the format... ignored.");
 
+#ifdef DEBUG
     lout << kBlue << cmd;
+#endif
     const vector<char> v = conv.GetVector(str.substr(p0));
+#ifdef DEBUG
     lout << endl;
+#endif
 
     const int rc = DimClient::sendCommand(cmd.c_str(), (void*)v.data(), v.size());
Index: /trunk/FACT++/src/StateMachineImp.cc
===================================================================
--- /trunk/FACT++/src/StateMachineImp.cc	(revision 13067)
+++ /trunk/FACT++/src/StateMachineImp.cc	(revision 13068)
@@ -250,5 +250,10 @@
     // Convert the user entered data according to the format string
     // into a data block which will be attached to the event
+#ifndef DEBUG
+    ostringstream sout;
+    const Converter conv(sout, fmt, false);
+#else
     const Converter conv(lout, fmt, false);
+#endif
     if (!conv)
     {
@@ -259,7 +264,11 @@
     try
     {
+#ifdef DEBUG
         lout << kBlue << name;
+#endif
         const vector<char> v = conv.GetVector(str.substr(p0));
+#ifdef DEBUG
         lout << endl;
+#endif
 
         return PostEvent(*evt, v.data(), v.size());
@@ -313,5 +322,5 @@
     {
         Event *event = new Event(evt, ptr, siz);
-        Debug("Posted: "+event->GetName());
+        //Debug("Posted: "+event->GetName());
         PushEvent(event);
     }
