From 25da422bd1050d8cebd4dc604707edc5c6948a38 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Wed, 18 Sep 2024 02:35:28 +0900 Subject: [PATCH] network: log loaded .network and .netdev files --- src/network/netdev/netdev.c | 2 +- src/network/networkd-network.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/network/netdev/netdev.c b/src/network/netdev/netdev.c index d37476bb716..53f74f6e8b0 100644 --- a/src/network/netdev/netdev.c +++ b/src/network/netdev/netdev.c @@ -973,7 +973,7 @@ int netdev_load_one(Manager *manager, const char *filename) { if (r < 0) return r; - log_netdev_debug(netdev, "loaded \"%s\"", netdev_kind_to_string(netdev->kind)); + log_syntax(/* unit = */ NULL, LOG_DEBUG, filename, /* config_line = */ 0, /* error = */ 0, "Successfully loaded."); r = netdev_request_to_create(netdev); if (r < 0) diff --git a/src/network/networkd-network.c b/src/network/networkd-network.c index 8ccf215a71e..5107da47839 100644 --- a/src/network/networkd-network.c +++ b/src/network/networkd-network.c @@ -590,6 +590,7 @@ int network_load_one(Manager *manager, OrderedHashmap **networks, const char *fi return log_warning_errno(r, "%s: Failed to store configuration into hashmap: %m", filename); TAKE_PTR(network); + log_syntax(/* unit = */ NULL, LOG_DEBUG, filename, /* config_line = */ 0, /* error = */ 0, "Successfully loaded."); return 0; }