mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-07-16 18:54:13 +01:00
[MIRROR] reimplements attack and player logs (#12553)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
bb90e792ca
commit
99afe463dc
@@ -44,6 +44,11 @@ SUBSYSTEM_DEF(dbcore)
|
||||
|
||||
/datum/controller/subsystem/dbcore/Initialize()
|
||||
Connect()
|
||||
if(IsConnected() && CONFIG_GET(flag/database_logging))
|
||||
var/datum/db_query/query_truncate = NewQuery("TRUNCATE erro_dialog")
|
||||
if(!query_truncate.Execute())
|
||||
log_sql("ERROR TRYING TO CLEAR erro_dialog: "+query_truncate.ErrorMsg())
|
||||
qdel(query_truncate)
|
||||
return SS_INIT_SUCCESS
|
||||
|
||||
/datum/controller/subsystem/dbcore/stat_entry(msg)
|
||||
|
||||
@@ -41,7 +41,6 @@ SUBSYSTEM_DEF(mobs)
|
||||
// Lets handle all of these while we have time, should always remain extremely small...
|
||||
if(length(death_list)) // Don't contact DB if this list is empty
|
||||
if(CONFIG_GET(flag/sql_enabled))
|
||||
establish_db_connection()
|
||||
if(!SSdbcore.IsConnected())
|
||||
log_game("SQL ERROR during death reporting. Failed to connect.")
|
||||
else
|
||||
|
||||
@@ -20,7 +20,6 @@ SUBSYSTEM_DEF(persist)
|
||||
if(!CONFIG_GET(flag/time_off))
|
||||
return
|
||||
|
||||
establish_db_connection()
|
||||
if(!SSdbcore.IsConnected())
|
||||
src.currentrun.Cut()
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user