]> git.ipfire.org Git - thirdparty/systemd.git/commit
sysupdated: Rearrange error logging a little bit
authorAdrian Vovk <adrianvovk@gmail.com>
Thu, 19 Sep 2024 15:44:42 +0000 (11:44 -0400)
committerAdrian Vovk <adrianvovk@gmail.com>
Thu, 19 Sep 2024 15:44:42 +0000 (11:44 -0400)
commit5faf65d9cf7ff94970a18589aefd550c01a651d1
tree96d044afcc282f3e0c95a64e4d143cb79bdeadec
parent802d9b18e928e9d7071abbc80a4cb5450c9325be
sysupdated: Rearrange error logging a little bit

First, this fixes a case where an error is logged twice at the LOG_ERR
level. Second, this goes through and raises the log level where
appropriate so that sysupdated is easier to debug. Finally, it replaces
EINVAL with EPROTO where appropriate, since EINVAL implies that the
caller passed some incorrect arguments (which is incorrect; sysupdate
passed some invalid JSON back to us)
src/sysupdate/sysupdated.c