diff --git a/src/trs/trs.hpp b/src/trs/trs.hpp index 2173be2..e3c6d33 100644 --- a/src/trs/trs.hpp +++ b/src/trs/trs.hpp @@ -58,7 +58,7 @@ namespace trs { try { - hack::log(" ")("server listen:", var::HOST, var::PORT); + hack::log(" ")(std::format("[{}]", m_service_name), "listen:", var::HOST, var::PORT); listen(var::HOST, var::PORT); } catch(std::exception& e) diff --git a/src/trs/utils/define.hpp b/src/trs/utils/define.hpp index 7a0eede..8d3744a 100644 --- a/src/trs/utils/define.hpp +++ b/src/trs/utils/define.hpp @@ -6,7 +6,3 @@ #define TRS_LOG(...) if (trs::var::status::DEBUG) hack::log(": ")(__VA_ARGS__) #define TRS_ERROR(...) if (trs::var::status::DEBUG) hack::error(": ")(__VA_ARGS__) -#define DEF_LINE() std::experimental::source_location::current().line() -#define DEF_LOCATION() std::experimental::source_location::current() - -