[gnome-software] trivial: Make the verbose logging more useful
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Make the verbose logging more useful
- Date: Wed, 18 May 2016 13:10:16 +0000 (UTC)
commit 8f92ad513721e3099c39aac0d7bbe082d3c1d473
Author: Richard Hughes <richard hughsie com>
Date: Wed May 18 14:09:39 2016 +0100
trivial: Make the verbose logging more useful
src/gs-plugin-loader.c | 18 +++++++++++++-----
1 files changed, 13 insertions(+), 5 deletions(-)
---
diff --git a/src/gs-plugin-loader.c b/src/gs-plugin-loader.c
index b225d8e..9ad19c2 100644
--- a/src/gs-plugin-loader.c
+++ b/src/gs-plugin-loader.c
@@ -3172,15 +3172,23 @@ gs_plugin_loader_status_changed_cb (GsPlugin *plugin,
{
GsPluginLoaderPrivate *priv = gs_plugin_loader_get_instance_private (plugin_loader);
- /* same as last time */
- if (app == NULL && status == priv->status_last)
+ /* nothing specific */
+ if (gs_app_get_id (app) == NULL) {
+ if (status == priv->status_last)
+ return;
+ g_debug ("emitting global %s",
+ gs_plugin_status_to_string (status));
+ priv->status_last = status;
+ g_signal_emit (plugin_loader,
+ signals[SIGNAL_STATUS_CHANGED],
+ 0, app, status);
return;
+ }
- /* new, or an app, so emit */
+ /* a specific app */
g_debug ("emitting %s(%s)",
gs_plugin_status_to_string (status),
- app != NULL ? gs_app_get_id (app) : "<general>");
- priv->status_last = status;
+ gs_app_get_id (app));
g_signal_emit (plugin_loader,
signals[SIGNAL_STATUS_CHANGED],
0, app, status);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]