Fix incorrect host state change logs.

Fixes #6290