rename commit to log in console

This commit is contained in:
chatlanin 2024-07-10 10:22:01 +03:00
parent b09ae8407f
commit 0b761bde2b
2 changed files with 2 additions and 1 deletions

View File

@ -53,7 +53,7 @@ namespace hack
Database::instance().execute("logger", convert_to_json());
}
void commit(const std::filesystem::path file_name = DEF_FILE_NAME(), std::string line = DEF_LINE())
void log(const std::filesystem::path file_name = DEF_FILE_NAME(), std::string line = DEF_LINE())
{
error("")(file_name,":", line, ": ", m_message);
warn("")(m_location, ": ", m_description);

View File

@ -5,6 +5,7 @@
auto main(int argc, char *argv[]) -> int
{
hack::exception ex;
ex.log();
}