log order when unit state changes

While browsing velia's logs I found the order of events logged a little misleading.
When systemd unit changes state and input to StateManager changes, we
first log the input change and then the info about unit state change.

This patch logs the events in the correct order.

Before, the log entries when a systemd unit changed state looked like
this (timestamps stripped):

 [main] [debug] Input 0x15efe0c changed state to State::ERROR
 [main] [info] Output changed to State::ERROR
 [main] [trace] Systemd unit 'systemd-journal-upload.service' changed state (activating auto-restart)

With this fix it will look like this. It should me more accurate:

 [main] [trace] Systemd unit 'systemd-journal-upload.service' changed state (activating auto-restart)
 [main] [debug] Input 0x15efe0c changed state to State::ERROR
 [main] [info] Output changed to State::ERROR

Change-Id: I73fe87c28d0d564046598080f425ab6abeefce71
1 file changed
tree: 6c16188a35f654a2b63452bd20632915e1e5b066
  1. .clang-format
  2. .gitmodules
  3. .zuul.CzechLight-internal.yaml
  4. .zuul.public.yaml
  5. CMakeLists.txt
  6. Doxyfile.in
  7. LICENSE
  8. LICENSE.md
  9. README.md
  10. ci/
  11. cmake/
  12. src/
  13. tests/
README.md

Health tracking for embedded devices running Linux

This software tracks health of an embedded device which runs Linux with systemd.