Rewrite logger to account for multiple-threads.

Implement error handling for worker VMs.
This commit is contained in:
Sandu Liviu Catalin
2020-09-08 22:44:04 +03:00
parent 054a7983a5
commit d6f3f52eec
8 changed files with 482 additions and 178 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ namespace SqMod {
*/ catch (const Sqrat::Exception & e) /*
*/ { /*
*/ LogErr("Squirrel exception caught " action); /*
*/ Logger::Get().Debug("%s", e.what()); /*
*/ Logger::Get().DebugF(SqVM(), "%s", e.what()); /*
*/ } /*
*/