mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-28 06:28:01 +01:00
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:
@@ -38,7 +38,7 @@
|
||||
if(ai_holder_type)
|
||||
ai_holder = new ai_holder_type(src)
|
||||
if(!ai_holder)
|
||||
log_debug("[src] could not initialize ai_holder of type [ai_holder_type]")
|
||||
log_runtime("[src] could not initialize ai_holder of type [ai_holder_type]")
|
||||
return
|
||||
if(ishuman(src))
|
||||
var/mob/living/carbon/human/H = src
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
var/stance_coloring = FALSE // Colors the mob depending on its stance.
|
||||
|
||||
var/debug_ai = AI_LOG_OFF // The level of debugging information to display to people who can see log_debug().
|
||||
var/debug_ai = AI_LOG_OFF // The level of debugging information to display to people who can see log_world().
|
||||
|
||||
/datum/ai_holder/New()
|
||||
..()
|
||||
@@ -41,7 +41,7 @@
|
||||
if(AI_LOG_TRACE)
|
||||
span_type = "debug_trace"
|
||||
if(ver <= debug_ai)
|
||||
log_debug("<span class='[span_type]'>AI: ([holder]:\ref[holder] | [holder.x],[holder.y],[holder.z])(@[world.time]): [msg] </span>")
|
||||
log_world("<span class='[span_type]'>AI: ([holder]:\ref[holder] | [holder.x],[holder.y],[holder.z])(@[world.time]): [msg] </span>")
|
||||
|
||||
// Colors the mob based on stance, to visually tell what stance it is for debugging.
|
||||
// Probably not something you want for regular use.
|
||||
|
||||
Reference in New Issue
Block a user