sysupdated: Improve logging about jobs
authorAdrian Vovk <adrianvovk@gmail.com>
Sat, 31 Aug 2024 04:42:54 +0000 (00:42 -0400)
committerAdrian Vovk <adrianvovk@gmail.com>
Mon, 2 Sep 2024 15:02:32 +0000 (11:02 -0400)
commitbb36e70e92528f4642bf6279b73624950424a45e
tree5b9bdb38adccbbd8bfd91086f5f2b86e8ec519de
parenta841ad2945d7fe942cc000808e2736d09f287a51
sysupdated: Improve logging about jobs

If someone runs `updatectl update`, sysupdate will be running multiple
update jobs at the same time, which can make reasoning about the output
in the journal quite difficult. Especially if things go wrong: the error
messages didn't mention which job failed. Nor was there any link between
job ID and the PID of the worker process logging to the journal. This
is all fixed here!
src/sysupdate/sysupdated.c