Commit d78f9fbe authored by Colin Walters's avatar Colin Walters

Use GSystem for logging

Now that it's installed, it's way saner.  I'm not even sure where
-log-hack was/is supposed to be.
parent 4df71f61
......@@ -20,6 +20,7 @@
const Gtk = imports.gi.Gtk;
const GLib = imports.gi.GLib;
const GObject = imports.gi.GObject;
const GSystem = imports.gi.GSystem;
const Gio = imports.gi.Gio;
const Lang = imports.lang;
......@@ -210,11 +211,8 @@ function main() {
let startstopapps = new StartStopApps();
startstopapps.run(cancellable);
let [success, stdout, stderr, estatus] =
GLib.spawn_sync(null,
['gnome-continuous-journal-log-hack',
'6912513dead443cea8ddb6b716185fa5=startstopapps complete'],
null, GLib.SpawnFlags.SEARCH_PATH, null);
GSystem.log_structured("startstopapps complete",
["MESSAGE_ID=6912513dead443cea8ddb6b716185fa5"]);
}
printerr("Running gnome-continuous-startstopapps");
......
......@@ -19,6 +19,7 @@
const GLib = imports.gi.GLib;
const Gio = imports.gi.Gio;
const GSystem = imports.gi.GSystem;
const Lang = imports.lang;
let running = true;
......@@ -98,8 +99,5 @@ print("gnome-shell-valgrind: exiting, results in " + logPath);
Gio.Subprocess.new(['sync'], 0).wait_check(null);
let [success, stdout, stderr, estatus] =
GLib.spawn_sync(null,
['gnome-continuous-journal-log-hack',
'c15ddcb848ed44d9b39fadcfe7a34795=gnome-shell-valgrind complete'],
null, GLib.SpawnFlags.SEARCH_PATH, null);
GSystem.log_structured("gnome-shell-valgrind complete",
["MESSAGE_ID=c15ddcb848ed44d9b39fadcfe7a34795"]);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment