mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-14 17:36:52 +01:00
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:
@@ -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>"
|
||||
|
||||
Reference in New Issue
Block a user