Stop json-encoding everything

This commit is contained in:
Jean Flach 2018-11-29 16:44:43 +01:00 committed by Michael Friedrich
parent d104eb4ac1
commit af05a354fa
1 changed files with 3 additions and 3 deletions

View File

@ -654,10 +654,10 @@ Dictionary::Ptr RedisWriter::SerializeState(const Checkable::Ptr& checkable)
if (cr) {
// TODO: Long Output did not work in my test cases. Need to investigate
attrs->Set("output", JsonEncode(CompatUtility::GetCheckResultOutput(cr)));
attrs->Set("output", CompatUtility::GetCheckResultOutput(cr));
attrs->Set("long_output", CompatUtility::GetCheckResultLongOutput(cr));
attrs->Set("performance_data", JsonEncode(cr->GetPerformanceData()));
attrs->Set("command", JsonEncode(cr->GetCommand()));
attrs->Set("performance_data", cr->GetPerformanceData());
attrs->Set("command", cr->GetCommand());
attrs->Set("execution_time", cr->CalculateExecutionTime());
attrs->Set("latency", cr->CalculateLatency());
}