mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-19 11:05:50 +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:
@@ -516,7 +516,7 @@
|
||||
break
|
||||
|
||||
if(!new_canvas)
|
||||
warning("Couldn't find a canvas to match [w]x[h] of painting")
|
||||
WARNING("Couldn't find a canvas to match [w]x[h] of painting")
|
||||
return
|
||||
|
||||
new_canvas.fill_grid_from_icon(I)
|
||||
@@ -558,7 +558,7 @@
|
||||
return 0
|
||||
if(!fexists("data/persistent/paintings/[persistence_id]/[painting["md5"]].png"))
|
||||
to_chat(usr, span_warning("Chosen painting could not be loaded! Incident was logged, but no action taken at this time"))
|
||||
log_debug("[usr] tried to spawn painting of list id [which_painting] in all_paintings list and associated file could not be found. \n \
|
||||
log_runtime("[usr] tried to spawn painting of list id [which_painting] in all_paintings list and associated file could not be found. \n \
|
||||
Painting was titled [title] by [author_ckey] of [persistence_id]")
|
||||
return 0
|
||||
|
||||
@@ -573,7 +573,7 @@
|
||||
break
|
||||
|
||||
if(!new_canvas)
|
||||
warning("Couldn't find a canvas to match [w]x[h] of painting")
|
||||
WARNING("Couldn't find a canvas to match [w]x[h] of painting")
|
||||
return 0
|
||||
|
||||
new_canvas.fill_grid_from_icon(I)
|
||||
@@ -596,7 +596,7 @@
|
||||
Proceed? It will likely have over 500 entries", "Generate list?", list("Proceed!", "Cancel")) != "Proceed!")
|
||||
return
|
||||
|
||||
log_debug("[usr] generated list of paintings from SSPersistence")
|
||||
// to_chat(world, "[usr] generated list of paintings from SSPersistence")
|
||||
var/list/paintings = list()
|
||||
var/current = 1
|
||||
for(var/entry in SSpersistence.all_paintings)
|
||||
|
||||
@@ -174,7 +174,7 @@
|
||||
if(activated) return
|
||||
|
||||
if(locate(/obj/structure/catwalk) in loc)
|
||||
warning("Frame Spawner: A catwalk already exists at [loc.x]-[loc.y]-[loc.z]")
|
||||
WARNING("Frame Spawner: A catwalk already exists at [loc.x]-[loc.y]-[loc.z]")
|
||||
else
|
||||
var/obj/structure/catwalk/C = new /obj/structure/catwalk(loc)
|
||||
C.plated_tile = tile
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
/obj/structure/drop_pod/proc/podfall(auto_open)
|
||||
var/turf/T = get_turf(src)
|
||||
if(!T)
|
||||
warning("Drop pod wasn't spawned on a turf")
|
||||
WARNING("Drop pod wasn't spawned on a turf")
|
||||
return
|
||||
|
||||
moveToNullspace()
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
for(var/obj/structure/lattice/LAT in src.loc)
|
||||
if(LAT != src)
|
||||
log_debug("Found multiple lattices at '[log_info_line(loc)]'") //VOREStation Edit, why was this a runtime, it's harmless
|
||||
log_mapping("Found multiple lattices at '[log_info_line(loc)]'") //VOREStation Edit, why was this a runtime, it's harmless
|
||||
return INITIALIZE_HINT_QDEL
|
||||
icon = 'icons/obj/smoothlattice.dmi'
|
||||
icon_state = "latticeblank"
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
icon_state = "blank"
|
||||
var/turf/T = loc
|
||||
if(!isturf(T) || T.density || T.opacity)
|
||||
warning("[src] on invalid turf [T] at [x],[y],[z]")
|
||||
WARNING("[src] on invalid turf [T] at [x],[y],[z]")
|
||||
return INITIALIZE_HINT_QDEL
|
||||
|
||||
if(!materialtype)
|
||||
@@ -575,7 +575,7 @@
|
||||
/obj/effect/low_wall_spawner/Initialize(mapload)
|
||||
. = ..()
|
||||
if(locate(/obj/effect/low_wall_spawner) in oview(0, src))
|
||||
warning("Duplicate low wall spawners in [x],[y],[z]!")
|
||||
WARNING("Duplicate low wall spawners in [x],[y],[z]!")
|
||||
return INITIALIZE_HINT_QDEL
|
||||
|
||||
if(low_wall_type)
|
||||
|
||||
Reference in New Issue
Block a user