Implement crash logging, 'crash_processname_pid.log' at the root of logs/

This commit is contained in:
Akkadius
2015-01-20 05:52:50 -06:00
parent ad5d1e4814
commit 01940ee5ed
2 changed files with 27 additions and 10 deletions
+9 -9
View File
@@ -77,15 +77,15 @@ int main() {
Log.Out(Logs::General, Logs::QS_Server, "Connecting to MySQL...");
/* MySQL Connection */
// if (!database.Connect(
// Config->QSDatabaseHost.c_str(),
// Config->QSDatabaseUsername.c_str(),
// Config->QSDatabasePassword.c_str(),
// Config->QSDatabaseDB.c_str(),
// Config->QSDatabasePort)) {
// Log.Out(Logs::General, Logs::QS_Server, "Cannot continue without a database connection.");
// return 1;
// }
if (!database.Connect(
Config->QSDatabaseHost.c_str(),
Config->QSDatabaseUsername.c_str(),
Config->QSDatabasePassword.c_str(),
Config->QSDatabaseDB.c_str(),
Config->QSDatabasePort)) {
Log.Out(Logs::General, Logs::QS_Server, "Cannot continue without a database connection.");
return 1;
}
/* Register Log System and Settings */
database.LoadLogSysSettings(Log.log_settings);