fix db in exception
This commit is contained in:
parent
c26089afd6
commit
77ba48efca
@ -16,8 +16,6 @@ namespace hack
|
||||
{
|
||||
using JSON = nlohmann::json;
|
||||
|
||||
const std::string SET_LOG = "set_log";
|
||||
|
||||
class exception : public utils::json_converter<JSON>
|
||||
{
|
||||
public:
|
||||
@ -52,8 +50,7 @@ namespace hack
|
||||
template<typename Database>
|
||||
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<typename HttpResponse>
|
||||
|
Loading…
Reference in New Issue
Block a user