diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-07-10 04:50:19 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-07-10 04:50:19 +0200 |
commit | 1e001f52d20a4685c9e8cf3cfa690021ca05c9e7 (patch) | |
tree | 670a0da12ff427c044128bf209f42e5ef9143f82 /src/manager.c | |
parent | 2e22afe909cd5fa003347aa91ad15f0516e5047f (diff) |
main: add a few more useful diagnostic log messages
Diffstat (limited to 'src/manager.c')
-rw-r--r-- | src/manager.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/manager.c b/src/manager.c index 638ef2f450..a643263213 100644 --- a/src/manager.c +++ b/src/manager.c @@ -1768,6 +1768,8 @@ static int manager_start_target(Manager *m, const char *name, JobMode mode) { dbus_error_init(&error); + log_info("Activating special unit %s", name); + if ((r = manager_add_job_by_name(m, JOB_START, name, mode, true, &error, NULL)) < 0) log_error("Failed to enqueue %s job: %s", name, bus_error(&error, r)); @@ -1795,6 +1797,8 @@ static int manager_process_signal_fd(Manager *m) { return -errno; } + log_debug("Received SIG%s", strna(signal_to_string(sfsi.ssi_signo))); + switch (sfsi.ssi_signo) { case SIGCHLD: @@ -1905,7 +1909,7 @@ static int manager_process_signal_fd(Manager *m) { break; } - log_info("Got unhandled signal <%s>.", strsignal(sfsi.ssi_signo)); + log_warning("Got unhandled signal <%s>.", strna(signal_to_string(sfsi.ssi_signo))); } } } |