sleep: clean up debug/error logging
authorLennart Poettering <lennart@poettering.net>
Wed, 10 Jun 2020 14:47:38 +0000 (16:47 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 11 Jun 2020 08:33:56 +0000 (10:33 +0200)
commitc02540dc9e1f28c8598ff1ead0d0f0ed93774313
tree435d275a8a2bde85e4e61b68d1606ca58faffe94
parent6f9120ad6181fcd7316f5963557cd8d84a5979c8
sleep: clean up debug/error logging

half of find_hibernation_location() logged at debug level, the other
half logged at error level, and the third half didn't log at all.

Let's clean this up somewhat. Since can_sleep() is probably more
a library-style function let's downgrade everything to LOG_DEBUG and
then make sure sleep.c logs at error level, as the main program.
src/shared/sleep-config.c
src/sleep/sleep.c