JSON Logging Refactor (#18252)

* First pass

* fixes

* more fixes

* num2hex length changes

* pass 2

* fixed warning

* looc log fix

* .

* update tgui

* .

* .

* .

* .

* perttier

* cleanup

* .

* .

* fix token

* no

* .

* .

* .

* ,

* modsay eventsay

* .

---------

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
Selis
2025-09-11 17:28:20 +02:00
committed by GitHub
co-authored by Kashargul
parent 67fa43bd5a
commit b0f0f4685f
403 changed files with 4013 additions and 2309 deletions
+4 -4
View File
@@ -349,13 +349,13 @@ var/const/CE_STABLE_THRESHOLD = 0.5
if (!injected)
return
if(!our)
log_debug("[src] has no blood reagent, proceeding with fallback reinitialization.")
log_runtime("[src] has no blood reagent, proceeding with fallback reinitialization.")
var/vessel_old = vessel
vessel = null
qdel(vessel_old)
make_blood(amount)
if(!vessel)
log_debug("Failed to re-initialize blood datums on [src]!")
log_runtime("Failed to re-initialize blood datums on [src]!")
return
if(vessel.total_volume < species.blood_volume)
vessel.add_reagent(REAGENT_ID_BLOOD, species.blood_volume - vessel.total_volume)
@@ -364,7 +364,7 @@ var/const/CE_STABLE_THRESHOLD = 0.5
fixblood()
our = get_blood(vessel)
if(!our)
log_debug("Failed to re-initialize blood datums on [src]!")
log_runtime("Failed to re-initialize blood datums on [src]!")
return
if(is_changeling(src)) //Changelings don't reject blood!
vessel.add_reagent(REAGENT_ID_BLOOD, amount, injected.data)
@@ -430,7 +430,7 @@ var/const/CE_STABLE_THRESHOLD = 0.5
//Someone fed us a weird source. Let's log it.
if(source && !istype(source, /datum/reagent/blood))
log_debug("A blood splatter was made using non-blood datum [source]!")
log_runtime("A blood splatter was made using non-blood datum [source]!")
source = null //Clear the source since it's invalid. Fallback to non-source behavior.
// Are we dripping or splattering?
+1 -1
View File
@@ -96,7 +96,7 @@ var/list/organ_cache = list()
data.setup_from_dna(C.dna)
data.setup_from_species(C.species)
else
log_debug("[src] at [loc] spawned without a proper DNA.")
log_runtime("[src] at [loc] spawned without a proper DNA.")
var/mob/living/carbon/human/H = C
if(istype(H))
if(internal)
+1 -1
View File
@@ -36,7 +36,7 @@
var/datum/robolimb/R = GLOB.all_robolimbs[model] // company should be set in parent by now
if(!R)
log_error("A torso was robotize() but has no model that can be found: [model]. May affect FBPs.")
log_runtime("A torso was robotize() but has no model that can be found: [model]. May affect FBPs.")
owner.synthetic = R
return FALSE