notification.set_timeout(5);
notification.show();
} catch(Error e) {
- GLib.debug("Error %s\n",e.message);
+ GLib.debug("Error sending notification to screen: %s\n",e.message);
}
return false; // do not keep doing this..
}
} catch (Error e) {
- print("Error: %s\n",e.message);
+ GLib.debug("Error: %s\n",e.message);
break;
}
//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 = {};
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;
}
//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 = {};
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();
//GLib.Log.set_always_fatal(LogLevelFlags.LEVEL_ERROR | LogLevelFlags.LEVEL_CRITICAL);
+ GLib.Log.set_handler(null,
+ GLib.LogLevelFlags.LEVEL_DEBUG | GLib.LogLevelFlags.LEVEL_WARNING | GLib.LogLevelFlags.LEVEL_INFO,
+ (dom, lvl, msg) => {
+
+
+ // should we debug..
+
+
+ print("%s\n", msg);
+ }
+ );
+
+
Gtk.init (ref args);
GitMonitor.gitlive = Environment.get_home_dir() + "/gitlive";