Skip to content

Commit

Permalink
RDK-38254 : added onReportUpload event for failure cases.
Browse files Browse the repository at this point in the history
  • Loading branch information
sborushevsky committed Dec 16, 2022
1 parent dd068b8 commit 41e2d0c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Telemetry/Telemetry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -257,11 +257,15 @@ namespace WPEFramework
else
{
LOGERR("No 'UPLOAD_STATUS' value");
Telemetry::_instance->onReportUploadStatus("No 'UPLOAD_STATUS' value");
}
}
else
{
LOGERR("Call failed with %d error", error);
std::stringstream str;
str << "Call failed with " << error << " error";
LOGERR("%s", str.str().c_str());
Telemetry::_instance->onReportUploadStatus(str.str().c_str());
}
}

Expand Down

0 comments on commit 41e2d0c

Please sign in to comment.