X-Git-Url: http://git.roojs.org/?p=gitlive;a=blobdiff_plain;f=WindowLog.vala;h=d63516c704fd9f823fa9c690d36c0a02adfd25a8;hp=682e4c43e64a1d09914a2abb8c51ab74edb73f1a;hb=01e7beaf18d9aca3c2c2ad6f60c4b183aa177888;hpb=0153f97b879002d9bea6d745901eacdd2f60bf1e diff --git a/WindowLog.vala b/WindowLog.vala index 682e4c43..d63516c7 100644 --- a/WindowLog.vala +++ b/WindowLog.vala @@ -42,7 +42,7 @@ public class WindowLog : Object { try { this.write("", "IDLE"); } catch (Error e) { - print(e.message + "\n"); + GLib.debug("%s",e.message); } } this.win = ""; @@ -86,7 +86,7 @@ public class WindowLog : Object { this.win=win; } } catch (Error e) { - print(e.message + "\n"); + GLib.debug("%s",e.message); } @@ -113,17 +113,17 @@ public class WindowLog : Object { this.lastdir = dir; } - + var fname = now.format("/%d") + ".log"; var path = dir + "/" + fname; var time = now.format("%H:%M:%S "); //print("time: " + time + "\n"); var f = File.new_for_path(path); - FileOutputStream ios = f.append_to (FileCreateFlags.NONE); + var ios = f.append_to (FileCreateFlags.NONE); var data_out = new DataOutputStream (ios); data_out.put_string("\n" +time + str + " " + cmd, null); - print(time + str + " " + cmd + "\n"); + GLib.debug("%s%s %s",time , str , cmd); data_out.close(null);