[gnome-builder] build-manager: use contextual logging



commit 69658065aba20dae6d4cf9fd3ee147d179c62905
Author: Christian Hergert <chergert redhat com>
Date:   Sat Jan 6 01:44:24 2018 -0800

    build-manager: use contextual logging

 src/libide/buildsystem/ide-build-manager.c  |    6 +++++-
 src/libide/buildsystem/ide-build-pipeline.c |    4 ++--
 2 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/src/libide/buildsystem/ide-build-manager.c b/src/libide/buildsystem/ide-build-manager.c
index 2980f28..5648782 100644
--- a/src/libide/buildsystem/ide-build-manager.c
+++ b/src/libide/buildsystem/ide-build-manager.c
@@ -19,6 +19,7 @@
 #define G_LOG_DOMAIN "ide-build-manager"
 
 #include <dazzle.h>
+#include <glib/gi18n.h>
 
 #include "ide-context.h"
 #include "ide-debug.h"
@@ -346,7 +347,10 @@ ide_build_manager_ensure_runtime_cb (GObject      *object,
   /* This will cause plugins to load on the pipeline. */
   if (!g_initable_init (G_INITABLE (pipeline), NULL, &error))
     {
-      g_warning ("Failure to initialize pipeline: %s", error->message);
+      /* translators: %s is replaced with the error message */
+      ide_object_warning (self,
+                          _("Failed to initialize build pipeline: %s"),
+                          error->message);
       IDE_GOTO (failure);
     }
 
diff --git a/src/libide/buildsystem/ide-build-pipeline.c b/src/libide/buildsystem/ide-build-pipeline.c
index 25f8085..9fb4c84 100644
--- a/src/libide/buildsystem/ide-build-pipeline.c
+++ b/src/libide/buildsystem/ide-build-pipeline.c
@@ -859,7 +859,7 @@ register_post_install_commands_stage (IdeBuildPipeline *self,
 
       if (NULL == (launcher = ide_build_pipeline_create_launcher (self, &error)))
         {
-          g_warning ("%s", error->message);
+          ide_object_warning (self, "%s", error->message);
           return;
         }
 
@@ -2348,7 +2348,7 @@ ide_build_pipeline_attach_pty (IdeBuildPipeline      *self,
 
   if (self->pty_slave == -1)
     {
-      g_warning ("Failed to create PTY slave");
+      ide_object_warning (self, _("Psuedo terminal creation failed. Terminal features will be limited."));
       return;
     }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]