summaryrefslogtreecommitdiffstats
path: root/monitor/fan.cpp
diff options
context:
space:
mode:
authorMatt Spinler <spinler@us.ibm.com>2017-07-26 15:10:48 -0500
committerPatrick Williams <patrick@stwcx.xyz>2017-07-30 11:31:39 +0000
commitce75b511690b68822882ed04a232bb07ec7696ff (patch)
tree26de70641e0b53b1d9b79457d70ac6d9ffbcc4d5 /monitor/fan.cpp
parentc5f5351d985cf9d5d7d19de4b0d9a7ec083a4f55 (diff)
downloadphosphor-fan-presence-ce75b511690b68822882ed04a232bb07ec7696ff.tar.gz
phosphor-fan-presence-ce75b511690b68822882ed04a232bb07ec7696ff.zip
fan-monitor: Capture more data on failure
When a fan gets set to nonfunctional, it is useful to know how fast the rotor was actually going and what the expected speed was. Change-Id: I760d6fa7d193038f9740d241bf4d4d0039020f64 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Diffstat (limited to 'monitor/fan.cpp')
-rw-r--r--monitor/fan.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/monitor/fan.cpp b/monitor/fan.cpp
index 195317c..f3937c2 100644
--- a/monitor/fan.cpp
+++ b/monitor/fan.cpp
@@ -187,7 +187,10 @@ void Fan::timerExpired(TachSensor& sensor)
if (_functional && tooManySensorsNonfunctional())
{
log<level::ERR>("Setting a fan to nonfunctional",
- entry("FAN=%s", _name.c_str()));
+ entry("FAN=%s", _name.c_str()),
+ entry("TACH_SENSOR=%s", sensor.name().c_str()),
+ entry("ACTUAL_SPEED=%lld", sensor.getInput()),
+ entry("TARGET_SPEED=%lld", getTargetSpeed(sensor)));
updateInventory(false);
}
OpenPOWER on IntegriCloud