diff --git a/src/trs/trs.hpp b/src/trs/trs.hpp index 7a679f4..7b6d4c6 100644 --- a/src/trs/trs.hpp +++ b/src/trs/trs.hpp @@ -114,7 +114,7 @@ namespace trs ex.log(); auto r = PGXX().execute(var::LOGGER_DB, var::FUNC_LOGGER, ex.convert_to_json()); if (m_log_to_console) - hack::error()(r); + hack::error()(r, tr.m_data.m_result); } res.set_content(nlohmann::to_string(tr.m_data.m_result), var::HEADER_FLAG_JSON);