From f1b3dd4eb599d17ed894afcecf74c5e7a11cf947 Mon Sep 17 00:00:00 2001 From: Till Maas Date: Fri, 4 Mar 2022 17:39:10 +0100 Subject: [PATCH] libnmc: Remove verbose logging Don't log the failure to spawn the auth dialog. This is polluting the terminal when using nmcli when activating an OpenVPN profile if /usr/libexec/nm-openvpn-auth-dialog is not available. Since nmcli can still ask for the credentials, the missing auth dialog does not block the activation, so the "warning" level is too much. Since it is a library, any output to the terminal is bad, therefore remove the logging. Signed-off-by: Till Maas --- src/libnmc-base/nm-secret-agent-simple.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/libnmc-base/nm-secret-agent-simple.c b/src/libnmc-base/nm-secret-agent-simple.c index 5651a15bb8..de3de05a84 100644 --- a/src/libnmc-base/nm-secret-agent-simple.c +++ b/src/libnmc-base/nm-secret-agent-simple.c @@ -795,7 +795,6 @@ try_spawn_vpn_auth_helper(RequestData *request, GPtrArray *secrets) &auth_dialog_out_fd, NULL, &error)) { - g_warning("Failed to spawn the auth dialog%s\n", error->message); return FALSE; }