sync
[gitlive] / GitRepo.vala
index d69a112..7cf9538 100644 (file)
@@ -73,7 +73,7 @@ public class GitRepo : Object
                 }
                 
             } catch (Error e) {
-                print("Error: %s\n",e.message);
+                GLib.debug("Error: %s\n",e.message);
                 break;
             }
          
@@ -328,8 +328,8 @@ public class GitRepo : Object
 
         //this.lastCmd = args.join(" ");
         //if(this.debug) {
-            stdout.printf( "CWD=%s\n",  this.git_working_dir ); 
-            print( "cmd: %s\n", string.joinv (" ", args)); 
+            GLib.debug( "CWD=%s\n",  this.git_working_dir ); 
+            GLib.debug( "cmd: %s\n", string.joinv (" ", args)); 
         //}
 
         string[]   env = {};
@@ -348,7 +348,7 @@ public class GitRepo : Object
         var sp = new Spawn(cfg);
       
 
-        stdout.printf( "GOT: %s\n" , sp.output);
+        GLib.debug( "GOT: %s\n" , sp.output);
         // parse output for some commands ?
         return sp.output;
     }
@@ -374,8 +374,8 @@ public class GitRepo : Object
 
         //this.lastCmd = args.join(" ");
         //if(this.debug) {
-            stdout.printf( "CWD=%s\n",  this.git_working_dir ); 
-            print( "cmd: %s\n", string.joinv (" ", args)); 
+            GLib.debug( "CWD=%s\n",  this.git_working_dir ); 
+            //print( "cmd: %s\n", string.joinv (" ", args)); 
         //}
 
         string[]   env = {};
@@ -401,7 +401,7 @@ public class GitRepo : Object
     
     void git_async_on_complete(int err, string output)
     {
-               print("GOT %s\n", output);
+               GLib.debug("GOT %s\n", output);
                this.git_async_on_callback(this, output);
 //             this.unref();   
        //      sp.unref();