diff options
| author | Bart Van Assche <bvanassche@google.com> | 2022-12-02 19:04:22 -0800 |
|---|---|---|
| committer | Semavi Ulusoy <doc.divxm@gmail.com> | 2023-04-16 10:45:17 +0300 |
| commit | 5e989dc75d4ac288f94ec4e60c74486021889dfc (patch) | |
| tree | 991e9799899f17939ee95acf5cdbaef3d25a4a52 | |
| parent | c782e91dae2529b110a0ea77f5ccb6d4f94ec4d1 (diff) | |
init: Make an error message more informative
Make it easier to diagnose service failures.
Bug: 213617178
Change-Id: I27135cb32b6a98b2fe24ab2324dffbf5b591fdd5
Signed-off-by: Bart Van Assche <bvanassche@google.com>
| -rw-r--r-- | init/service.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/init/service.cpp b/init/service.cpp index 34e8200163..7e43061c4c 100644 --- a/init/service.cpp +++ b/init/service.cpp @@ -286,7 +286,8 @@ void Service::Reap(const siginfo_t& siginfo) { } if ((siginfo.si_code != CLD_EXITED || siginfo.si_status != 0) && on_failure_reboot_target_) { - LOG(ERROR) << "Service with 'reboot_on_failure' option failed, shutting down system."; + LOG(ERROR) << "Service " << name_ + << " has 'reboot_on_failure' option and failed, shutting down system."; trigger_shutdown(*on_failure_reboot_target_); } |
