format: Include format lib and use on errors opening JSON files
Included the format library used to add more details to the journal
message without needing the verbose output and updated the journal
logging when loading a JSON file. When loading a JSON file, now any
errors will produce a journal message atleast containing the JSON file
that failed to be loaded.
Tested:
Removed JSON configuration file and attempted to load it
Journal msg shows which JSON configuration file is loaded now
Failure to parse JSON shows file and exception in journal msg
Change-Id: I6bec9bb01d8e95c3dced467ea96163129c59619b
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
diff --git a/presence/Makefile.am b/presence/Makefile.am
index d67f287..2f1d787 100644
--- a/presence/Makefile.am
+++ b/presence/Makefile.am
@@ -20,7 +20,9 @@
$(PHOSPHOR_LOGGING_LIBS) \
${PHOSPHOR_DBUS_INTERFACES_LIBS} \
$(LIBEVDEV_LIBS) \
- $(STDPLUS_LIBS)
+ $(STDPLUS_LIBS) \
+ $(FMT_LIBS)
+
phosphor_fan_presence_tach_CXXFLAGS = \
$(SDBUSPLUS_CFLAGS) \
$(SDEVENTPLUS_CFLAGS) \