socket: turn of loud logging when setting up sockopts in container fails due to privs
Various socktops will fail if we run in a container, due to lack of
privs (for example SO_RECVFORCE as used by the journald sockets). That's
typically not a big issue. Hence downgrade the log level.
Follow-up for: f7df0eab8d
This commit is contained in:
committed by
Yu Watanabe
parent
834a7dfc12
commit
947ecb0812
+2
-1
@@ -1031,7 +1031,8 @@ DEFINE_TRIVIAL_CLEANUP_FUNC_FULL(Socket*, socket_close_fds, NULL);
|
||||
int _e_ = (e); \
|
||||
log_unit_full_errno( \
|
||||
UNIT(s), \
|
||||
ERRNO_IS_NOT_SUPPORTED(_e_) ? LOG_DEBUG : LOG_WARNING, \
|
||||
ERRNO_IS_NOT_SUPPORTED(_e_) || \
|
||||
ERRNO_IS_PRIVILEGE(_e_) ? LOG_DEBUG : LOG_WARNING, \
|
||||
_e_, \
|
||||
"Failed to set %s socket option, ignoring: %m", \
|
||||
option); \
|
||||
|
||||
Reference in New Issue
Block a user