diff options
-rw-r--r-- | power-libperfmgr/libperfmgr/HintManager.cc | 2 | ||||
-rw-r--r-- | thermal/utils/config_parser.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/power-libperfmgr/libperfmgr/HintManager.cc b/power-libperfmgr/libperfmgr/HintManager.cc index cf9f8296..bfa29c07 100644 --- a/power-libperfmgr/libperfmgr/HintManager.cc +++ b/power-libperfmgr/libperfmgr/HintManager.cc @@ -156,7 +156,7 @@ std::vector<std::unique_ptr<Node>> HintManager::ParseNodes( std::string errorMessage; if (!reader->parse(&*json_doc.begin(), &*json_doc.end(), &root, &errorMessage)) { - LOG(ERROR) << "Failed to parse JSON config"; + LOG(ERROR) << "Failed to parse JSON config: " << errorMessage; return nodes_parsed; } diff --git a/thermal/utils/config_parser.cpp b/thermal/utils/config_parser.cpp index 79997f79..f3f937ce 100644 --- a/thermal/utils/config_parser.cpp +++ b/thermal/utils/config_parser.cpp @@ -73,7 +73,7 @@ std::map<std::string, SensorInfo> ParseSensorInfo(std::string_view config_path) std::string errorMessage; if (!reader->parse(&*json_doc.begin(), &*json_doc.end(), &root, &errorMessage)) { - LOG(ERROR) << "Failed to parse JSON config"; + LOG(ERROR) << "Failed to parse JSON config: " << errorMessage; return sensors_parsed; } |