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 21:53:11 +00:00
committed by GitHub
parent 40faa01587
commit b183188689
194 changed files with 1637 additions and 877 deletions
@@ -134,7 +134,7 @@
if(config.ipc_timelock_active)
pref.can_edit_ipc_tag = FALSE
else
log_error("SQL CHARACTER LOAD: Logic error, general/basic/load_special() didn't return any rows when it should have. Character ID: [pref.current_character].")
log_world("ERROR: SQL CHARACTER LOAD: Logic error, general/basic/load_special() didn't return any rows when it should have. Character ID: [pref.current_character].")
/datum/category_item/player_setup_item/general/basic/sanitize_character()
if(!pref.species)
@@ -174,14 +174,14 @@ var/global/list/valid_bloodtypes = list("A+", "A-", "B+", "B-", "AB+", "AB-", "O
try
pref.body_markings = json_decode(pref.body_markings)
catch (var/exception/e)
log_debug("BODY MARKINGS: Caught [e]. Initial value: [before]")
LOG_DEBUG("BODY MARKINGS: Caught [e]. Initial value: [before]")
pref.body_markings = list()
if (istext(pref.disabilities))
var/before = pref.disabilities
try
pref.disabilities = json_decode(pref.disabilities)
catch (var/exception/e)
log_debug("DISABILITIES: Caught [e]. Initial value: [before]")
LOG_DEBUG("DISABILITIES: Caught [e]. Initial value: [before]")
pref.disabilities = list()
var/datum/species/mob_species = all_species[pref.species]
@@ -94,14 +94,14 @@
try
pref.all_underwear = json_decode(pref.all_underwear)
catch(var/exception/e)
log_debug("UNDERWEAR: Caught [e]. Initial value: [before]")
LOG_DEBUG("UNDERWEAR: Caught [e]. Initial value: [before]")
pref.all_underwear = list()
if(istext(pref.all_underwear_metadata))
var/before = pref.all_underwear_metadata
try
pref.all_underwear_metadata = json_decode(pref.all_underwear_metadata)
catch(var/exception/e)
log_debug("UNDERWEAR METADATA: Caught [e]. Initial value: [before]")
LOG_DEBUG("UNDERWEAR METADATA: Caught [e]. Initial value: [before]")
pref.all_underwear_metadata = list()
if(!istype(pref.all_underwear))