Salome HOME
Add very simple log system
[tools/libbatch.git] / src / Core / CommunicationProtocolRSH.cxx
index 59caf2d28789cab4b565557ea7e4b6e4ebcc2e55..7c69d1505c98a5d012bd79cf4251102fcfd428e9 100644 (file)
@@ -36,6 +36,7 @@
 #include <config.h>
 
 #include "CommunicationProtocolRSH.hxx"
+#include "Log.hxx"
 
 using namespace std;
 
@@ -160,7 +161,7 @@ namespace Batch {
       newdir[0] = driveLetter;
       newdir[1] = ':';
       newdir[2] = '\0';
-      cout << "Changing directory: " << newdir << endl;
+      LOG("Changing directory: " << newdir);
       _chdir(newdir);
     }
 
@@ -169,7 +170,7 @@ namespace Batch {
 
     // Go back to previous directory if necessary
     if (driveLetter != '\0' && driveLetter != currentDrive) {
-      cout << "Changing directory: " << cwd << endl;
+      LOG("Changing directory: " << cwd);
       _chdir(cwd);
     }