add log
This commit is contained in:
parent
7e0251c044
commit
454dfb6f86
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user