From 7e0251c0443d0b00750f133cf59331baf7121a1c Mon Sep 17 00:00:00 2001 From: chatlanin Date: Fri, 19 Jul 2024 10:21:25 +0300 Subject: [PATCH] fix name --- src/trs/trs.hpp | 2 +- src/trs/utils/var.hpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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"; }