summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2021-05-21 18:39:06 +0200
committerLennart Poettering <lennart@poettering.net>2021-05-22 11:00:04 +0200
commitb0c035e3c82a01037874bda1a95f8bac95de6667 (patch)
tree4c7db84c2f77116c88214f736e566361b1cebabc /src
parent887b2019b67d25c5c91a8118655eee87b9f4af99 (diff)
downloadsystemd-b0c035e3c82a01037874bda1a95f8bac95de6667.tar.gz
sleep: remove duplicate logging
execute() logs about all errors, hence only log about what's new, i.e. what we'll do as consequence, and don't mention the error cause again.
Diffstat (limited to 'src')
-rw-r--r--src/sleep/sleep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sleep/sleep.c b/src/sleep/sleep.c
index 86b155c9ea..8f6bd40c5c 100644
--- a/src/sleep/sleep.c
+++ b/src/sleep/sleep.c
@@ -303,11 +303,11 @@ static int execute_s2h(const SleepConfig *sleep_config) {
r = execute(sleep_config, SLEEP_HIBERNATE, NULL);
if (r < 0) {
- log_notice_errno(r, "Couldn't hibernate, will try to suspend again: %m");
+ log_notice("Couldn't hibernate, will try to suspend again.");
r = execute(sleep_config, SLEEP_SUSPEND, "suspend-after-failed-hibernate");
if (r < 0)
- return log_error_errno(r, "Could neither hibernate nor suspend, giving up: %m");
+ return r;
}
return 0;