Index: trunk/FACT++/scripts/takeRun.js
===================================================================
--- trunk/FACT++/scripts/takeRun.js	(revision 16851)
+++ trunk/FACT++/scripts/takeRun.js	(revision 16852)
@@ -20,5 +20,6 @@
         return;
 
-    console.out("", "  "+new Date().toUTCString()+": Incomplete event ["+inc+","+incomplete+"] detected, sending MCP/STOP");
+    console.out("");
+    dim.log("Incomplete event ["+inc+","+incomplete+"] detected, sending MCP/STOP");
 
     incomplete = inc;
@@ -65,6 +66,5 @@
 */
     console.out("");
-    console.out("  "+new Date().toUTCString()+": Trying automatic reconnect ["+txt+",n="+list.length+"]...");
-    console.out(new Date().toUTCString());
+    dim.log("Trying automatic reconnect ["+txt+",n="+list.length+"]...");
 
     if (list.length>3)
@@ -109,4 +109,6 @@
     // Wait also for MCP to have all boards connected again
     dim.wait("MCP", "Idle", 3000);
+
+    dim.log("Automatic reconnect successfull.");
     console.out("");
 }
@@ -120,5 +122,5 @@
 
     var nextrun = sub_startrun.get().obj['next'];
-    console.out("  "+new Date().toUTCString()+": Take run %3d".$(nextrun)+": N="+count+" T="+time+"s ["+type+"]");
+    dim.log("Take run %3d".$(nextrun)+": N="+count+" T="+time+"s ["+type+"]");
 
     // FIXME: Replace by callback?
