diff --git a/src/hack/exception/exception.hpp b/src/hack/exception/exception.hpp index 4160132..b3c3187 100644 --- a/src/hack/exception/exception.hpp +++ b/src/hack/exception/exception.hpp @@ -16,8 +16,6 @@ namespace hack { using JSON = nlohmann::json; - const std::string SET_LOG = "set_log"; - class exception : public utils::json_converter { public: @@ -52,8 +50,7 @@ namespace hack template void commit(const std::filesystem::path file_name = DEF_FILE_NAME(), std::string line = DEF_LINE()) { - auto r = Database::instance().execute(SET_LOG, convert_to_json()); - error()(r); + Database::instance().execute("logger", convert_to_json()); } template