1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-03-08 20:58:20 +03:00

sysctl: downgrade warning about excluded keys

Our own config generates logs like this:
systemd-sysctl[1280]: Not setting net/ipv4/conf/all/rp_filter (explicit setting exists).
systemd-sysctl[1280]: Not setting net/ipv4/conf/default/rp_filter (explicit setting exists).
systemd-sysctl[1280]: Not setting net/ipv4/conf/all/accept_source_route (explicit setting exists).
systemd-sysctl[1280]: Not setting net/ipv4/conf/default/accept_source_route (explicit setting exists).
systemd-sysctl[1280]: Not setting net/ipv4/conf/all/promote_secondaries (explicit setting exists).
systemd-sysctl[1280]: Not setting net/ipv4/conf/default/promote_secondaries (explicit setting exists).

There is no error and nothing really to see.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2021-02-17 19:46:19 +01:00 committed by Lennart Poettering
parent 6283e71ba8
commit 42a033f784

View File

@ -161,7 +161,7 @@ static int apply_all(OrderedHashmap *sysctl_options) {
continue; continue;
if (ordered_hashmap_contains(sysctl_options, key)) { if (ordered_hashmap_contains(sysctl_options, key)) {
log_info("Not setting %s (explicit setting exists).", key); log_debug("Not setting %s (explicit setting exists).", key);
continue; continue;
} }