[gnome-continuous] Use GSystem for logging
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-continuous] Use GSystem for logging
- Date: Tue, 24 Jun 2014 17:21:52 +0000 (UTC)
commit d78f9fbeea48d2ea5922bdc402290dda8a2dfd5a
Author: Colin Walters <walters verbum org>
Date: Tue Jun 24 12:59:55 2014 -0400
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.
src/tests/gnome-continuous-startstopapps | 8 +++-----
src/tests/gnome-shell-valgrind | 8 +++-----
2 files changed, 6 insertions(+), 10 deletions(-)
---
diff --git a/src/tests/gnome-continuous-startstopapps b/src/tests/gnome-continuous-startstopapps
index bfa1f88..8edd157 100644
--- a/src/tests/gnome-continuous-startstopapps
+++ b/src/tests/gnome-continuous-startstopapps
@@ -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");
diff --git a/src/tests/gnome-shell-valgrind b/src/tests/gnome-shell-valgrind
index 7a9c01a..92c0948 100644
--- a/src/tests/gnome-shell-valgrind
+++ b/src/tests/gnome-shell-valgrind
@@ -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"]);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]