summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-02-02 10:36:11 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-02-06 23:16:17 -0500
commit7ad94c716d6403233d04c4d37cb14df958c9b65d (patch)
tree56715512395f60962e5942c7a2c78507e4d26aff /src/core
parent0783951b931cb2743a43cbfdc37babd76fedd2fe (diff)
systemd: raise level of message about lookup paths
This can be pretty important for the user, and is not trivial to figure out in all cases. Also show failing path in error messages.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/manager.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/core/manager.c b/src/core/manager.c
index 25aa1be12f..c8d7d70dc4 100644
--- a/src/core/manager.c
+++ b/src/core/manager.c
@@ -2263,7 +2263,8 @@ static int create_generator_dir(Manager *m, char **generator, const char *name)
r = mkdir_p_label(p, 0755);
if (r < 0) {
- log_error("Failed to create generator directory: %s", strerror(-r));
+ log_error("Failed to create generator directory %s: %s",
+ p, strerror(-r));
free(p);
return r;
}
@@ -2274,7 +2275,8 @@ static int create_generator_dir(Manager *m, char **generator, const char *name)
if (!mkdtemp(p)) {
free(p);
- log_error("Failed to create generator directory: %m");
+ log_error("Failed to create generator directory %s: %m",
+ p);
return -errno;
}
}
@@ -2313,7 +2315,8 @@ void manager_run_generators(Manager *m) {
if (errno == ENOENT)
return;
- log_error("Failed to enumerate generator directory: %m");
+ log_error("Failed to enumerate generator directory %s: %m",
+ generator_path);
return;
}