Skip to content

Commit

Permalink
Report errors using error level logging
Browse files Browse the repository at this point in the history
  • Loading branch information
arkq committed May 27, 2022
1 parent a003d88 commit c155e13
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/platform/Tizen/AppPreference.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ CHIP_ERROR GetData(const char * key, void * data, size_t dataSize, size_t * getD
}
if (err != PREFERENCE_ERROR_NONE)
{
ChipLogProgress(DeviceLayer, "FAIL: Get preference [%s]: %s", key, get_error_message(err));
ChipLogError(DeviceLayer, "Failed to get preference [%s]: %s", key, get_error_message(err));
return CHIP_ERROR_INCORRECT_STATE;
}

Expand Down Expand Up @@ -96,7 +96,7 @@ CHIP_ERROR SaveData(const char * key, const void * data, size_t dataSize)
}
if (err != PREFERENCE_ERROR_NONE)
{
ChipLogProgress(DeviceLayer, "FAIL: Set preference [%s]: %s", key, get_error_message(err));
ChipLogError(DeviceLayer, "Failed to set preference [%s]: %s", key, get_error_message(err));
return CHIP_ERROR_INCORRECT_STATE;
}

Expand All @@ -113,7 +113,7 @@ CHIP_ERROR RemoveData(const char * key)
}
if (err != PREFERENCE_ERROR_NONE)
{
ChipLogProgress(DeviceLayer, "FAIL: Remove preference [%s]: %s", key, get_error_message(err));
ChipLogError(DeviceLayer, "Failed to remove preference [%s]: %s", key, get_error_message(err));
return CHIP_ERROR_INCORRECT_STATE;
}

Expand Down

0 comments on commit c155e13

Please sign in to comment.