diff options
author | Haibo Huang <hhb@google.com> | 2021-03-02 23:53:44 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2021-03-02 23:53:44 +0000 |
commit | e47b5ba63dca7ad3caf09548c5551787adff46d7 (patch) | |
tree | 93236a451235fd3e3980663627576cd846adedde | |
parent | 0aa6b9279556253700c1aa8c4f6b6489c9b1ec09 (diff) | |
parent | c938f616d5028ead77ef708d0e4e2a2670dc2f86 (diff) | |
download | pixel-e47b5ba63dca7ad3caf09548c5551787adff46d7.tar.gz |
Print error message am: 7a38f410ad am: c938f616d5
Original change: https://android-review.googlesource.com/c/platform/hardware/google/pixel/+/1612362
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Ibdb3f15455a39d16036ecaaab1e07efc3456282f
-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; } |