hypervisor: reduce journal logging

Currently, anytime the BootProgress property changes the code will log a
"Change to Hypervisor..." message. During the boot though, there are a
lot of BootProgress changes that do not actually result in a hypervisor
state change. Be a bit smarter about logging to the journal.

Tested:
- Confirmed the journal entry is only written when the hypervisor state
  is actually changing.

Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Change-Id: I104a5ff7488f4a660386a581521ab75a12c07206
diff --git a/hypervisor_state_manager.cpp b/hypervisor_state_manager.cpp
index 8e8697b..d158818 100644
--- a/hypervisor_state_manager.cpp
+++ b/hypervisor_state_manager.cpp
@@ -46,7 +46,11 @@
 
 server::Host::HostState Hypervisor::currentHostState(HostState value)
 {
-    info("Change to Hypervisor State: {HYP_STATE}", "HYP_STATE", value);
+    // Only log a message if this has changed since last
+    if (value != server::Host::currentHostState())
+    {
+        info("Change to Hypervisor State: {HYP_STATE}", "HYP_STATE", value);
+    }
     return server::Host::currentHostState(value);
 }