fix name
This commit is contained in:
parent
24df44f571
commit
7e0251c044
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user