rename commit to log in console
This commit is contained in:
@@ -53,7 +53,7 @@ namespace hack
|
|||||||
Database::instance().execute("logger", convert_to_json());
|
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);
|
error("")(file_name,":", line, ": ", m_message);
|
||||||
warn("")(m_location, ": ", m_description);
|
warn("")(m_location, ": ", m_description);
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
auto main(int argc, char *argv[]) -> int
|
auto main(int argc, char *argv[]) -> int
|
||||||
{
|
{
|
||||||
hack::exception ex;
|
hack::exception ex;
|
||||||
|
ex.log();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user