sensor-monitor: Missing includes
The sensor-monitor app doesn't compile by default so some missing
includes were missed. Add them.
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: I2d7160df6b3168d1e567b5fe16ffb29627e3c928
diff --git a/sensor-monitor/alarm_timestamps.hpp b/sensor-monitor/alarm_timestamps.hpp
index 1fbc80c..75586af 100644
--- a/sensor-monitor/alarm_timestamps.hpp
+++ b/sensor-monitor/alarm_timestamps.hpp
@@ -18,10 +18,13 @@
#include "types.hpp"
+#include <fmt/format.h>
+
#include <cereal/archives/json.hpp>
#include <cereal/types/string.hpp>
#include <cereal/types/tuple.hpp>
#include <cereal/types/vector.hpp>
+#include <phosphor-logging/log.hpp>
#include <sdeventplus/clock.hpp>
#include <sdeventplus/utility/timer.hpp>
@@ -241,8 +244,9 @@
catch (const std::exception& e)
{
// Include possible exception when removing file, otherwise ec = 0
+ using namespace phosphor::logging;
std::error_code ec;
- fs::remove(path, ec);
+ std::filesystem::remove(path, ec);
log<level::ERR>(
fmt::format("Unable to restore persisted times ({}, ec: {})",
e.what(), ec.value())