[gnome-software] gs-plugin-loder: Improve job timeout warning
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] gs-plugin-loder: Improve job timeout warning
- Date: Wed, 1 Jul 2020 20:11:07 +0000 (UTC)
commit 61a52b6f7522b7207d27af9e6b7031e36794efc2
Author: Robert Ancell <robert ancell canonical com>
Date: Wed Apr 15 16:01:28 2020 +1200
gs-plugin-loder: Improve job timeout warning
Add the name of the function that timed out and the number of seconds to the message.
lib/gs-plugin-loader.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/lib/gs-plugin-loader.c b/lib/gs-plugin-loader.c
index dbe35aca..fd355a1e 100644
--- a/lib/gs-plugin-loader.c
+++ b/lib/gs-plugin-loader.c
@@ -3417,7 +3417,9 @@ gs_plugin_loader_job_timeout_cb (gpointer user_data)
GsPluginLoaderHelper *helper = (GsPluginLoaderHelper *) user_data;
/* call the cancellable */
- g_debug ("cancelling job as it took too long");
+ g_debug ("cancelling job %s as it took longer than %u seconds",
+ helper->function_name,
+ gs_plugin_job_get_timeout (helper->plugin_job));
g_cancellable_cancel (helper->cancellable);
/* failed */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]