blob: c146087cf540d0a037488afe07c52283e54085bf [file] [log] [blame]
Andrew Geisslera90a31a2016-12-13 16:16:28 -06001#include <log.hpp>
2#include "chassis_state_manager.hpp"
3
4namespace phosphor
5{
6namespace state
7{
8namespace manager
9{
10
11// When you see server:: you know we're referencing our base class
12namespace server = sdbusplus::xyz::openbmc_project::State::server;
13
14using namespace phosphor::logging;
15
16Chassis::Transition Chassis::requestedPowerTransition(Transition value)
17{
18
19 log<level::INFO>("Change to Chassis Requested Power State",
20 entry("CHASSIS_REQUESTED_POWER_STATE=%s",
21 convertForMessage(value).c_str()));
22 return server::Chassis::requestedPowerTransition(value);
23}
24
25Chassis::PowerState Chassis::currentPowerState(PowerState value)
26{
27 log<level::INFO>("Change to Chassis Power State",
28 entry("CHASSIS_CURRENT_POWER_STATE=%s",
29 convertForMessage(value).c_str()));
30 return server::Chassis::currentPowerState(value);
31}
32
33} // namespace manager
34} // namespace state
35} // namepsace phosphor