summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-03-01 14:07:20 +0100
committerLennart Poettering <lennart@poettering.net>2013-03-01 14:07:20 +0100
commit242c4e1cc4d6419043729904d7dd88b2b1283556 (patch)
tree3da9018186f14705ac7283c752e5dd8541d63fc0
parentd6cb60c7a05f15ce3145080007bce602a6cb52ba (diff)
path-lookup: downgrade again the messages where we log for units
This partially reverts 7ad94c716d6403233d04c4d37cb14df958c9b65d. After that commit commands such as "systemctl enable" and friends printed the search path information multiple times in its output, which is ugly. If we want the search paths to be printed at a higher log level, then we should do this in PID 1 only, i.e. split the printing out of the normal path lookup logic and invoke that explicitly from PID 1 but not in the auxiliary tools.
-rw-r--r--src/shared/path-lookup.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/shared/path-lookup.c b/src/shared/path-lookup.c
index ffdc5367cb..6bb390fc90 100644
--- a/src/shared/path-lookup.c
+++ b/src/shared/path-lookup.c
@@ -325,9 +325,9 @@ int lookup_paths_init(
char _cleanup_free_ *t = strv_join(p->unit_path, "\n\t");
if (!t)
return -ENOMEM;
- log_info("Looking for unit files in (higher priority first):\n\t%s", t);
+ log_debug("Looking for unit files in (higher priority first):\n\t%s", t);
} else {
- log_info("Ignoring unit files.");
+ log_debug("Ignoring unit files.");
strv_free(p->unit_path);
p->unit_path = NULL;
}
@@ -385,9 +385,9 @@ int lookup_paths_init(
char _cleanup_free_ *t = strv_join(p->sysvinit_path, "\n\t");
if (!t)
return -ENOMEM;
- log_info("Looking for SysV init scripts in:\n\t%s", t);
+ log_debug("Looking for SysV init scripts in:\n\t%s", t);
} else {
- log_info("Ignoring SysV init scripts.");
+ log_debug("Ignoring SysV init scripts.");
strv_free(p->sysvinit_path);
p->sysvinit_path = NULL;
}
@@ -405,7 +405,7 @@ int lookup_paths_init(
p->sysvrcnd_path = NULL;
}
#else
- log_info("SysV init scripts and rcN.d links support disabled");
+ log_debug("SysV init scripts and rcN.d links support disabled");
#endif
}