diff options
author | Myung Bae <myungbae@us.ibm.com> | 2023-08-03 03:48:35 +0300 |
---|---|---|
committer | Myung Bae <myungbae@us.ibm.com> | 2023-08-03 03:55:19 +0300 |
commit | 1ccf70f116b28a0f78404b914a789ce05f411ddf (patch) | |
tree | 252629d8a81fc4519f1163fcd76705492f36fc2e /redfish-core/lib/update_service.hpp | |
parent | d518a9beb3c5fb36ea7a6da0d920ff3a4eddabac (diff) | |
download | bmcweb-1ccf70f116b28a0f78404b914a789ce05f411ddf.tar.xz |
Show Update error type on logs if unknown
Update is failing due to unknown update dbus error type
but the cause can not be determined as its value is not showing.
This change is to add the error cause to journal in addition to
CRITICAL internalError.
```
Aug 02 09:00:16 bmcweb[2476]: (2023-08-02 09:00:14) [ERROR
"update_service.hpp":396] Unknown Software Image Error type = <XXX>
Aug 02 09:00:16 bmcweb[2476]: (2023-08-02 09:00:14) [CRITICAL
"error_messages.cpp":284] Internal Error ....`
```
Not tested but successfully compiled.
Change-Id: I20833d24042bf8d2f7e2d8a8e4359e3d80af702a
Signed-off-by: Myung Bae <myungbae@us.ibm.com>
Diffstat (limited to 'redfish-core/lib/update_service.hpp')
-rw-r--r-- | redfish-core/lib/update_service.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/redfish-core/lib/update_service.hpp b/redfish-core/lib/update_service.hpp index 3e75425ee5..af2725aa38 100644 --- a/redfish-core/lib/update_service.hpp +++ b/redfish-core/lib/update_service.hpp @@ -393,6 +393,8 @@ static void monitorForSoftwareAvailable( } else { + BMCWEB_LOG_ERROR("Unknown Software Image Error type={}", + *type); redfish::messages::internalError(asyncResp->res); } } |