]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
crypto-util: drop redundant logs
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 1 Jul 2026 18:38:03 +0000 (03:38 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 2 Jul 2026 18:02:56 +0000 (03:02 +0900)
The called functions already log errors internally.

src/shared/crypto-util.c

index 60e2730bc7e34aad82d2256a9502a4d2d450a33e..b3f714acbca22f842b878c4cbef633c19095a16d 100644 (file)
@@ -2216,7 +2216,7 @@ int openssl_load_private_key(
                 _cleanup_(openssl_ask_password_ui_freep) OpenSSLAskPasswordUI *ui = NULL;
                 r = openssl_ask_password_ui_new(request, &ui);
                 if (r < 0)
-                        return log_debug_errno(r, "Failed to allocate ask-password user interface: %m");
+                        return r;
 
                 UI_METHOD *ui_method = NULL;
 #ifndef OPENSSL_NO_UI_CONSOLE
@@ -2235,11 +2235,7 @@ int openssl_load_private_key(
                         assert_not_reached();
                 }
                 if (r < 0)
-                        return log_debug_errno(
-                                        r,
-                                        "Failed to load key '%s' from OpenSSL private key source %s: %m",
-                                        private_key,
-                                        private_key_source);
+                        return r;
 
                 *ret_user_interface = TAKE_PTR(ui);
         }