From 053d2ae69ce7171937882fbdc67cb02b2bd59cbc Mon Sep 17 00:00:00 2001 From: George Kiagiadakis Date: Mon, 25 Mar 2024 09:55:59 +0200 Subject: [PATCH] m-lua-scripting: downgrade notice to debug when printing operation errors These errors are propagated to the caller, so it's the caller's responsibility to print them appropriately, if necessary. Printing a notice also here is only confusing. A debug mesage is still be useful for developers to understand the flow. --- modules/module-lua-scripting/api/api.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/module-lua-scripting/api/api.c b/modules/module-lua-scripting/api/api.c index c2277164..46df75b5 100644 --- a/modules/module-lua-scripting/api/api.c +++ b/modules/module-lua-scripting/api/api.c @@ -468,7 +468,7 @@ object_activate_done (WpObject *o, GAsyncResult * res, GClosure * closure) int n_vals = 1; if (!wp_object_activate_finish (o, res, &error)) { - wp_notice_object (o, "%s", error->message); + wp_debug_object (o, "%s", error->message); if (closure) { g_value_init (&val[1], G_TYPE_STRING); g_value_set_string (&val[1], error->message); @@ -1463,7 +1463,7 @@ si_adapter_set_ports_format_done (WpObject *o, GAsyncResult * res, int n_vals = 1; if (!wp_si_adapter_set_ports_format_finish (WP_SI_ADAPTER (o), res, &error)) { - wp_notice_object (o, "%s", error->message); + wp_debug_object (o, "%s", error->message); if (closure) { g_value_init (&val[1], G_TYPE_STRING); g_value_set_string (&val[1], error->message);