Add a set_and_log_status(unit, logger, status) function to set and log changes in the unit's status. This function was initially introduced in istio-pilot charm.
Unit test the function
Note that there was the argument that logging the status' history is something we shouldn't do and that should be handled by Juju itself but ATM this is not happening.
Note that there was the argument that logging the status' history is something we shouldn't do and that should be handled by
Juju
itself but ATM this is not happening.