Blame SOURCES/0003-hide-some-errors.patch

5968c4
diff -up gnome-software-3.36.1/lib/gs-plugin-loader.c.12 gnome-software-3.36.1/lib/gs-plugin-loader.c
5968c4
--- gnome-software-3.36.1/lib/gs-plugin-loader.c.12	2022-09-22 12:17:59.367881179 +0200
5968c4
+++ gnome-software-3.36.1/lib/gs-plugin-loader.c	2022-09-22 12:17:59.392881205 +0200
5968c4
@@ -333,10 +333,17 @@ gs_plugin_job_to_failed_event (GsPluginJ
5968c4
 
5968c4
 	/* invalid */
5968c4
 	if (error->domain != GS_PLUGIN_ERROR) {
5968c4
-		g_warning ("not GsPlugin error %s:%i: %s",
5968c4
-			   g_quark_to_string (error->domain),
5968c4
-			   error->code,
5968c4
-			   error->message);
5968c4
+		if (g_strcmp0 (BUILD_TYPE, "debug") == 0) {
5968c4
+			g_warning ("not GsPlugin error %s:%i: %s",
5968c4
+				   g_quark_to_string (error->domain),
5968c4
+				   error->code,
5968c4
+				   error->message);
5968c4
+		} else {
5968c4
+			g_debug ("not GsPlugin error %s:%i: %s",
5968c4
+				 g_quark_to_string (error->domain),
5968c4
+				 error->code,
5968c4
+				 error->message);
5968c4
+		}
5968c4
 		g_set_error_literal (&error_copy,
5968c4
 				     GS_PLUGIN_ERROR,
5968c4
 				     GS_PLUGIN_ERROR_FAILED,
5968c4
diff -up gnome-software-3.36.1/meson.build.12 gnome-software-3.36.1/meson.build
5968c4
--- gnome-software-3.36.1/meson.build.12	2022-09-22 12:18:09.900892043 +0200
5968c4
+++ gnome-software-3.36.1/meson.build	2022-09-22 12:18:19.311901744 +0200
5968c4
@@ -9,6 +9,7 @@ conf = configuration_data()
5968c4
 conf.set_quoted('VERSION', meson.project_version())
5968c4
 conf.set_quoted('PACKAGE_NAME', meson.project_name())
5968c4
 conf.set_quoted('PACKAGE_VERSION', meson.project_version())
5968c4
+conf.set_quoted('BUILD_TYPE', get_option('buildtype'))
5968c4
 
5968c4
 # this refers to the gnome-software plugin API version
5968c4
 # this is not in any way related to a package or soname version
5968c4
diff -up gnome-software-3.36.1/src/gs-shell.c.12 gnome-software-3.36.1/src/gs-shell.c
5968c4
--- gnome-software-3.36.1/src/gs-shell.c.12	2022-09-22 12:17:59.301881111 +0200
5968c4
+++ gnome-software-3.36.1/src/gs-shell.c	2022-09-22 12:17:59.392881205 +0200
5968c4
@@ -2044,10 +2044,17 @@ gs_shell_rescan_events (GsShell *shell)
5968c4
 			    !g_error_matches (error,
5968c4
 					      G_IO_ERROR,
5968c4
 					      G_IO_ERROR_CANCELLED)) {
5968c4
-				g_warning ("not handling error %s for action %s: %s",
5968c4
-					   gs_plugin_error_to_string (error->code),
5968c4
-					   gs_plugin_action_to_string (action),
5968c4
-					   error->message);
5968c4
+				if (g_strcmp0 (BUILD_TYPE, "debug") == 0) {
5968c4
+					g_warning ("not handling error %s for action %s: %s",
5968c4
+						   gs_plugin_error_to_string (error->code),
5968c4
+						   gs_plugin_action_to_string (action),
5968c4
+						   error->message);
5968c4
+				} else {
5968c4
+					g_debug ("not handling error %s for action %s: %s",
5968c4
+						 gs_plugin_error_to_string (error->code),
5968c4
+						 gs_plugin_action_to_string (action),
5968c4
+						 error->message);
5968c4
+				}
5968c4
 			}
5968c4
 			gs_plugin_event_add_flag (event, GS_PLUGIN_EVENT_FLAG_INVALID);
5968c4
 			return;