diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-11-06 00:04:06 -0500 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-11-26 15:16:53 -0500 |
commit | 4104970ef78e40e976215cdb0d1b9170a213cc4b (patch) | |
tree | 7a4d7bdfda9849fde5362dd027a272f92be9b978 /src/core/shutdown.c | |
parent | 278ebf8d26f0ebf9d63d8aa1b91a2adbdd8aa4e0 (diff) |
manager: log some fatal errors at emergency level
This adds a new log_emergency() function, which is equivalent to
log_error() for non-PID-1, and logs at the highest priority for PID 1.
Some messages which occur before freezing are converted to use it.
Diffstat (limited to 'src/core/shutdown.c')
-rw-r--r-- | src/core/shutdown.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/shutdown.c b/src/core/shutdown.c index 48ed7fa1c3..121998ff5c 100644 --- a/src/core/shutdown.c +++ b/src/core/shutdown.c @@ -416,7 +416,7 @@ int main(int argc, char *argv[]) { r = -errno; error: - log_error("Critical error while doing system shutdown: %s", strerror(-r)); + log_emergency("Critical error while doing system shutdown: %s", strerror(-r)); freeze(); } |