[gnome-builder/wip/chergert/pipeline: 10/48] subprocess: use g_debug() for subprocess launching
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/pipeline: 10/48] subprocess: use g_debug() for subprocess launching
- Date: Sat, 4 Feb 2017 00:09:39 +0000 (UTC)
commit 54167490a338d326d16ff80d466597bfb38e2ac2
Author: Christian Hergert <chergert redhat com>
Date: Fri Feb 3 12:17:21 2017 -0800
subprocess: use g_debug() for subprocess launching
This can be generally useful, not just during tracing.
libide/subprocess/ide-subprocess-launcher.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/libide/subprocess/ide-subprocess-launcher.c b/libide/subprocess/ide-subprocess-launcher.c
index c39c7ca..1e830ff 100644
--- a/libide/subprocess/ide-subprocess-launcher.c
+++ b/libide/subprocess/ide-subprocess-launcher.c
@@ -231,16 +231,16 @@ ide_subprocess_launcher_spawn_worker (GTask *task,
g_return_if_fail (IDE_IS_SUBPROCESS_LAUNCHER (self));
-#ifdef IDE_ENABLE_TRACE
{
g_autofree gchar *str = NULL;
g_autofree gchar *env = NULL;
+
str = g_strjoinv (" ", (gchar **)priv->argv->pdata);
env = priv->environ ? g_strjoinv (" ", priv->environ) : g_strdup ("");
- IDE_TRACE_MSG ("Launching '%s' from directory %s with environment %s %s parent environment",
- str, priv->cwd, env, priv->clear_env ? "clearing" : "inheriting");
+
+ g_debug ("Launching '%s' from directory '%s' with environment %s %s parent environment",
+ str, priv->cwd, env, priv->clear_env ? "clearing" : "inheriting");
}
-#endif
launcher = g_subprocess_launcher_new (priv->flags);
g_subprocess_launcher_set_child_setup (launcher, child_setup_func, NULL, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]