[gnome-builder/wip/chergert/pipeline-merge: 8/78] subprocess: use g_debug() for subprocess launching
- From: Matthew Leeds <mwleeds src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/pipeline-merge: 8/78] subprocess: use g_debug() for subprocess launching
- Date: Fri, 10 Feb 2017 03:27:47 +0000 (UTC)
commit adf06f072c84a093f8cc71f82bad8c77021098db
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 3229402..837d636 100644
--- a/libide/subprocess/ide-subprocess-launcher.c
+++ b/libide/subprocess/ide-subprocess-launcher.c
@@ -239,16 +239,16 @@ ide_subprocess_launcher_spawn_worker (GTask *task,
ide_subprocess_launcher_setenv (self, "USER", g_get_user_name (), FALSE);
}
-#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]