Remove Chassis power on messages when powering off

Currently Chassis state services show incorrect states
when a target exits. To fix this, a bus call is used on
the target to determine its ActiveState.  Doing that
helps to determine if the target is already
powered on and is now powering down.

Change-Id: I55bc87fa9ff647212fe545b7edd7df8a85e9e223
Signed-off-by: Josh D. King <jdking@us.ibm.com>
diff --git a/chassis_state_manager.hpp b/chassis_state_manager.hpp
index a56924e..0c6d5a1 100644
--- a/chassis_state_manager.hpp
+++ b/chassis_state_manager.hpp
@@ -80,6 +80,18 @@
          */
         void executeTransition(Transition tranReq);
 
+        /**
+         * @brief Determine if target is active
+         *
+         * This function determines if the target is active and
+         * helps prevent misleading log recorded states.
+         *
+         * @param[in] target - Target string to check on
+         *
+         * @return boolean corresponding to state active
+         **/
+        bool stateActive(const std::string& target);
+
         /** @brief Callback function on systemd state changes
          *
          * Will just do a call into the appropriate object for processing