summaryrefslogtreecommitdiff
path: root/src/network/networkd-bridge.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-bridge.c
parentbe9326ca1d207e1df6a033c593393ebbbc433148 (diff)
networkd: improve logging
Remove redundant messages, add some debugging ones and make wording more uniform.
Diffstat (limited to 'src/network/networkd-bridge.c')
-rw-r--r--src/network/networkd-bridge.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/network/networkd-bridge.c b/src/network/networkd-bridge.c
index f110b8aa12..ac71cf39d8 100644
--- a/src/network/networkd-bridge.c
+++ b/src/network/networkd-bridge.c
@@ -112,7 +112,7 @@ static int bridge_enter_ready(Bridge *bridge) {
bridge->state = BRIDGE_STATE_READY;
- log_info("Bridge '%s' ready", bridge->name);
+ log_info("%s: bridge ready", bridge->name);
LIST_FOREACH(callbacks, callback, bridge->callbacks) {
/* join the links that were attempted to be joined befor the
@@ -131,7 +131,7 @@ static int bridge_create_handler(sd_rtnl *rtnl, sd_rtnl_message *m, void *userda
r = sd_rtnl_message_get_errno(m);
if (r < 0) {
- log_warning("Bridge '%s' failed: %s", bridge->name, strerror(-r));
+ log_warning("%s: bridge failed: %s", bridge->name, strerror(-r));
bridge_enter_failed(bridge);
return 1;
@@ -196,7 +196,7 @@ static int bridge_create(Bridge *bridge) {
return r;
}
- log_info("Creating bridge '%s'", bridge->name);
+ log_debug("%s: creating bridge", bridge->name);
bridge->state = BRIDGE_STATE_CREATING;
@@ -269,8 +269,7 @@ static int bridge_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);
+ }
if (!bridge->name) {
log_warning("Bridge without Name configured in %s. Ignoring", filename);