]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
run: correct log level for pty_open_peer() error
authorMike Yuan <me@yhndnzj.com>
Wed, 15 Jan 2025 16:21:54 +0000 (17:21 +0100)
committerMike Yuan <me@yhndnzj.com>
Wed, 15 Jan 2025 16:46:10 +0000 (17:46 +0100)
Everything around it logs loudly.

src/run/run.c

index 3f7e0a6360b9b1ad456ee84a7ecb3ca15a631ba9..f1564b522e091d95a7bd67a643fb50402e1dd12e 100644 (file)
@@ -1966,7 +1966,7 @@ static int start_transient_service(sd_bus *bus) {
 
                         peer_fd = pty_open_peer(pty_fd, O_RDWR|O_NOCTTY|O_CLOEXEC);
                         if (peer_fd < 0)
-                                return log_debug_errno(peer_fd, "Failed to open PTY peer: %m");
+                                return log_error_errno(peer_fd, "Failed to open PTY peer: %m");
 
                         // FIXME: Introduce OpenMachinePTYEx() that accepts ownership/permission as param
                         // and additionally returns the pty fd, for #33216 and #32999