More logging for state change diagnostics