[gnome-builder/gnome-builder-43] libide/pipeline: additional logging for device setup
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/gnome-builder-43] libide/pipeline: additional logging for device setup
- Date: Sat, 24 Sep 2022 22:38:29 +0000 (UTC)
commit e096bbc46db6ba9a602ba08756f4279a54149853
Author: Christian Hergert <chergert redhat com>
Date: Sat Sep 24 15:34:34 2022 -0700
libide/pipeline: additional logging for device setup
src/libide/foundry/ide-pipeline.c | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/src/libide/foundry/ide-pipeline.c b/src/libide/foundry/ide-pipeline.c
index f82e3e015..8b6dac9cf 100644
--- a/src/libide/foundry/ide-pipeline.c
+++ b/src/libide/foundry/ide-pipeline.c
@@ -1223,6 +1223,8 @@ ide_pipeline_deploy_strategy_added_cb (IdeExtensionSetAdapter *set,
static gboolean
ide_pipeline_load_cb (IdleLoadState *state)
{
+ IDE_ENTRY;
+
g_assert (state != NULL);
g_assert (IDE_IS_PIPELINE (state->self));
g_assert (state->addins != NULL);
@@ -1252,7 +1254,7 @@ ide_pipeline_load_cb (IdleLoadState *state)
g_ptr_array_remove_index (state->addins, state->addins->len - 1);
if (state->addins->len > 0)
- return G_SOURCE_CONTINUE;
+ IDE_RETURN (G_SOURCE_CONTINUE);
}
/* Now setup deployment strategies */
@@ -1271,7 +1273,7 @@ ide_pipeline_load_cb (IdleLoadState *state)
g_signal_emit (state->self, signals [LOADED], 0);
- return G_SOURCE_REMOVE;
+ IDE_RETURN (G_SOURCE_REMOVE);
}
/**
@@ -1296,7 +1298,7 @@ ide_pipeline_load (IdePipeline *self)
/* We might have already disposed if our pipeline got discarded */
if (!(context = ide_object_get_context (IDE_OBJECT (self))))
- return;
+ IDE_EXIT;
register_build_commands_stage (self, context);
register_post_install_commands_stage (self, context);
@@ -1361,7 +1363,9 @@ ide_pipeline_load_get_info_cb (GObject *object,
if (!(info = ide_device_get_info_finish (device, result, &error)))
{
- g_warning ("Failed to get device information: %s", error->message);
+ ide_object_warning (IDE_OBJECT (self),
+ "Failed to load device information: %s",
+ error->message);
IDE_EXIT;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]