This commit is contained in:
chatlanin 2024-07-19 10:21:25 +03:00
parent 24df44f571
commit 7e0251c044
2 changed files with 3 additions and 2 deletions

View File

@ -112,7 +112,7 @@ namespace trs
ex.service(m_service_name); ex.service(m_service_name);
if (m_log_to_console) if (m_log_to_console)
ex.log(); ex.log();
auto r = PGXX().execute(var::LOGGER, var::LOGGER, ex.convert_to_json()); auto r = PGXX().execute(var::LOGGER_DB, var::FUNC_LOGGER, ex.convert_to_json());
if (m_log_to_console) if (m_log_to_console)
hack::error()(r); hack::error()(r);
} }

View File

@ -15,5 +15,6 @@ namespace trs::var
inline const std::string HEADER_TOKEN = "TRS-server-token"; inline const std::string HEADER_TOKEN = "TRS-server-token";
inline const std::string HEADER_FUNCTION = "TRS-server-function"; inline const std::string HEADER_FUNCTION = "TRS-server-function";
inline const std::string LOGGER = "logger"; inline const std::string LOGGER_DB = "logger";
inline const std::string FUNC_LOGGER = "logger";
} }