diff options
author | danielhanrahan <daniel.hanrahan@est.tech> | 2024-10-25 16:28:17 +0100 |
---|---|---|
committer | danielhanrahan <daniel.hanrahan@est.tech> | 2024-11-01 17:29:20 +0000 |
commit | 8271b8749da78e0ed44a716f22dec2183d8f39b2 (patch) | |
tree | bd9052e13e64f31b9c267ac105c456bcc4950fa7 /test-tools | |
parent | 9f680eedc69de5aadd4c905c242fbabb232ad106 (diff) |
[Module Sync] Log state changes after persistence
Currently, module sync will output messages such as:
"cm-handle-1 is now in READY state"
before the state change is persisted to the DB. If an exception
occurs, the new state may not be persisted, which makes debugging
hard due to misleading log entries. This commit moves the logging to
the LCM state handler immediately after the change is persisted.
- Move logging of state changes to LcmEventsCmHandleStateHandler.
- Remove unused code in LcmEventsCmHandleStateHandler.
- Add tests of state change logging.
- Update the main test showing the bug to instead show expected
behaviour, but disable test for now using @Ignore.
Issue-ID: CPS-2474
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I58646af6df95e07e69ca525744713a7c01c25e41
Diffstat (limited to 'test-tools')
0 files changed, 0 insertions, 0 deletions