From 77ba48efca8330d12e440de2ec29bee5f08acc77 Mon Sep 17 00:00:00 2001 From: chatlanin Date: Tue, 9 Jul 2024 10:08:58 +0300 Subject: [PATCH] fix db in exception --- src/hack/exception/exception.hpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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