[gnome-builder] git: use contextual logging
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] git: use contextual logging
- Date: Sat, 6 Jan 2018 10:08:51 +0000 (UTC)
commit 3497f14e3b3413c0701748661e330ddc454403c6
Author: Christian Hergert <chergert redhat com>
Date: Sat Jan 6 02:04:56 2018 -0800
git: use contextual logging
src/plugins/git/ide-git-vcs.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/git/ide-git-vcs.c b/src/plugins/git/ide-git-vcs.c
index 4dbe268..00e12e6 100644
--- a/src/plugins/git/ide-git-vcs.c
+++ b/src/plugins/git/ide-git-vcs.c
@@ -282,7 +282,7 @@ handle_reload_from_changed_timeout (GObject *object,
/* Call finish() so that "changed" is emitted */
if (!ide_git_vcs_reload_finish (self, result, &error))
- g_warning ("%s", error->message);
+ ide_object_warning (self, "git: %s", error->message);
}
static gboolean
@@ -360,7 +360,10 @@ ide_git_vcs_load_monitor_locked (IdeGitVcs *self,
if (monitor == NULL)
{
- g_warning ("Failed to establish git monitor: %s", local_error->message);
+ ide_object_warning (self,
+ /* translators: %s is replaced with the error message */
+ _("Failed to establish git file monitor: %s"),
+ local_error->message);
g_propagate_error (error, local_error);
ret = FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]