diff --git a/src/trs/trs.hpp b/src/trs/trs.hpp index e3c6d33..7a679f4 100644 --- a/src/trs/trs.hpp +++ b/src/trs/trs.hpp @@ -112,7 +112,7 @@ namespace trs ex.service(m_service_name); if (m_log_to_console) 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) hack::error()(r); } diff --git a/src/trs/utils/var.hpp b/src/trs/utils/var.hpp index 89e9f13..d01c16a 100644 --- a/src/trs/utils/var.hpp +++ b/src/trs/utils/var.hpp @@ -15,5 +15,6 @@ namespace trs::var inline const std::string HEADER_TOKEN = "TRS-server-token"; 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"; }