ipmi: Add sdr cache reset logs
Add some limited logs on when sensor cache gets reset every 30 seconds.
Tested:
ipmi still works after updating the library
```
$ systemctl restart phosphor-ipmi-host
$ ipmitool sdr
BRICK2_P12V_IOUT | 13.08 Amps | ok
CPU0_P1V1_IOUT | 7.75 Amps | ok
CPU0_P1V8_IOUT | 6.39 Amps | ok
CPU0_P3V3_IOUT | 0 Amps | ok
```
Log Example with the timeout working.
Restart the psu sensors to reset the sdr cache.
```
$ journalctl -f | grep "Sensor Cache Tree"
May 29 13:12:35 gbmc ipmid[18845]: Sensor Cache Tree reset with /xyz/openbmc_project/sensors/current/BRICK2_P12V_IOUT/chassis
...
May 29 13:12:35 gbmc ipmid[18845]: Sensor Cache Tree reset with /xyz/openbmc_project/sensors/current/CPU0_VSOC_IOUT/inventory
May 29 13:13:14 gbmc ipmid[18845]: Sensor Cache Tree reset with /xyz/openbmc_project/sensors/current/BRICK2_P12V_IOUT/chassis
...
```
Fusion-Link: http://fusion2/66e1dc13-01b8-3808-8f90-5e2af7e19f43
Google-Bug-Id: 325269540
Change-Id: Id1cfecfab5e37412f6e72cc90ca2e7fca47f4816
Signed-off-by: Willy Tu <wltu@google.com>
(cherry picked from commit 4bb47cba39c2c4041c5e1cc90e589e715b37be9a)
2 files changed