Better logging (#16164)

* Initial

* Cleared duplicates

* More work, get rid of log_error

* more

* log_debug() to macro LOG_DEBUG

* More work

* More

* Guh

* Maybe better?

* More work

* gah

* Dear lord

* *inserts swears here*

* gdi

* More work

* More

* dear lord

* fsdfsdafs

* rsdaf

* sadfasf

* sdafsad

* fgsd

* small fuckup fix

* jfsd

* sdafasf

* gdi

* sdfa

* sfdafgds

* sdafasdvf

* sdfasdfg

* sdfsga

* asdf

* dsfasfsagf

* ihibhbjh

* fsadf

* adfas

* sdafsad

* sdfasd

* fsda

* vhb

* asf

* for arrow

* removed source file-line logging, added header for tgui
This commit is contained in:
Fluffy
2023-08-05 23:53:11 +02:00
committed by GitHub
parent 40faa01587
commit b183188689
194 changed files with 1637 additions and 877 deletions
+4 -4
View File
@@ -36,7 +36,7 @@
return
if (!establish_db_connection(dbcon))
log_error("SQL connection failed while attempting to delete a note!")
log_world("ERROR: SQL connection failed while attempting to delete a note!")
return
var/count = 0 //failsafe from unban procs
@@ -52,12 +52,12 @@
if (count == 0)
to_chat(usr, "<span class='warning'>Database update failed due to a note id not being present in the database.</span>")
log_error("Database update failed due to a note id not being present in the database.")
log_world("ERROR: Database update failed due to a note id not being present in the database.")
return
if (count > 1)
to_chat(usr, "<span class='warning'>Database update failed due to multiple notes having the same ID. Contact the database admin.</span>")
log_error("Database update failed due to multiple notes having the same ID. Contact the database admin.")
log_world("ERROR: Database update failed due to multiple notes having the same ID. Contact the database admin.")
return
switch (note_edit)
@@ -92,7 +92,7 @@
admin_ckey = ckey(admin_ckey)
if (!establish_db_connection(dbcon))
log_error("SQL connection failed while attempting to view a player's notes!")
log_world("ERROR: SQL connection failed while attempting to view a player's notes!")
return
var/dat = "<div align='center'><h3>Notes Look-up Panel</h3><br>"