diff options
author | Mantas Mikulėnas <grawity@gmail.com> | 2024-11-12 09:30:09 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2024-11-19 11:00:20 +0100 |
commit | 2424a67c02913eac30b5d59f1e5ee39a846ca54b (patch) | |
tree | 8931da0ac8ecb003ce931b475cbd90e5e016236c /src/ssh-generator | |
parent | test: fix generate-sym-test using the wrong array (#35185) (diff) | |
download | systemd-2424a67c02913eac30b5d59f1e5ee39a846ca54b.tar.xz systemd-2424a67c02913eac30b5d59f1e5ee39a846ca54b.zip |
ssh-generator: silence "Binding to socket" messages
Diffstat (limited to 'src/ssh-generator')
-rw-r--r-- | src/ssh-generator/ssh-generator.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/ssh-generator/ssh-generator.c b/src/ssh-generator/ssh-generator.c index f482828635..8e15608f14 100644 --- a/src/ssh-generator/ssh-generator.c +++ b/src/ssh-generator/ssh-generator.c @@ -245,8 +245,8 @@ static int add_vsock_socket( if (r < 0) return r; - log_info("Binding SSH to AF_VSOCK vsock::22.\n" - "→ connect via 'ssh vsock/%u' from host", local_cid); + log_debug("Binding SSH to AF_VSOCK vsock::22.\n" + "→ connect via 'ssh vsock/%u' from host", local_cid); return 0; } @@ -280,8 +280,8 @@ static int add_local_unix_socket( if (r < 0) return r; - log_info("Binding SSH to AF_UNIX socket /run/ssh-unix-local/socket.\n" - "→ connect via 'ssh .host' locally"); + log_debug("Binding SSH to AF_UNIX socket /run/ssh-unix-local/socket.\n" + "→ connect via 'ssh .host' locally"); return 0; } @@ -336,8 +336,8 @@ static int add_export_unix_socket( if (r < 0) return r; - log_info("Binding SSH to AF_UNIX socket /run/host/unix-export/ssh\n" - "→ connect via 'ssh unix/run/systemd/nspawn/unix-export/\?\?\?/ssh' from host"); + log_debug("Binding SSH to AF_UNIX socket /run/host/unix-export/ssh\n" + "→ connect via 'ssh unix/run/systemd/nspawn/unix-export/\?\?\?/ssh' from host"); return 0; } @@ -387,7 +387,7 @@ static int add_extra_sockets( if (r < 0) return r; - log_info("Binding SSH to socket %s.", *i); + log_debug("Binding SSH to socket %s.", *i); n++; } @@ -462,7 +462,7 @@ static int run(const char *dest, const char *dest_early, const char *dest_late) _cleanup_free_ char *sshd_binary = NULL; r = find_executable("sshd", &sshd_binary); if (r == -ENOENT) { - log_info("Disabling SSH generator logic, since sshd is not installed."); + log_debug("Disabling SSH generator logic, since sshd is not installed."); return 0; } if (r < 0) |