summaryrefslogtreecommitdiff
path: root/src/network/networkd-network.c
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-01-02 15:30:46 +0100
committerTom Gundersen <teg@jklm.no>2014-01-02 15:49:23 +0100
commit449f75549247b3b7b073a788f0f099ce6b7c5378 (patch)
treede0940c4fa23175d65e6569610055801e060b21a /src/network/networkd-network.c
parentbe9326ca1d207e1df6a033c593393ebbbc433148 (diff)
networkd: improve logging
Remove redundant messages, add some debugging ones and make wording more uniform.
Diffstat (limited to 'src/network/networkd-network.c')
-rw-r--r--src/network/networkd-network.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/network/networkd-network.c b/src/network/networkd-network.c
index 56e5637a66..e0e3878f75 100644
--- a/src/network/networkd-network.c
+++ b/src/network/networkd-network.c
@@ -67,8 +67,7 @@ static int network_load_one(Manager *manager, const char *filename) {
if (r < 0) {
log_warning("Could not parse config file %s: %s", filename, strerror(-r));
return r;
- } else
- log_debug("Parsed configuration file %s", filename);
+ }
LIST_PREPEND(networks, manager->networks, network);
network = NULL;
@@ -88,7 +87,7 @@ int network_load(Manager *manager) {
r = conf_files_list_strv(&files, ".network", NULL, (const char **)manager->network_dirs);
if (r < 0) {
- log_error("failed to enumerate network files: %s", strerror(-r));
+ log_error("Failed to enumerate network files: %s", strerror(-r));
return r;
}
@@ -153,9 +152,9 @@ int network_get(Manager *manager, struct udev_device *device, Network **ret) {
udev_device_get_driver(device),
udev_device_get_devtype(device),
udev_device_get_sysname(device))) {
- log_debug("Network file %s applies to link %s",
- network->filename,
- udev_device_get_sysname(device));
+ log_debug("%s: found matching network '%s'",
+ udev_device_get_sysname(device),
+ network->filename);
*ret = network;
return 0;
}
@@ -169,9 +168,6 @@ int network_get(Manager *manager, struct udev_device *device, Network **ret) {
int network_apply(Manager *manager, Network *network, Link *link) {
int r;
- log_info("Network '%s' being applied to link '%s'",
- network->description, link->ifname);
-
link->network = network;
r = link_configure(link);