mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
[MIRROR] JSON Logging Refactor (#11623)
Co-authored-by: Selis <12716288+ItsSelis@users.noreply.github.com> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
272afa33c8
commit
5a62077f2c
@@ -517,7 +517,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)
|
||||
@@ -559,7 +559,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
|
||||
|
||||
@@ -574,7 +574,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)
|
||||
@@ -597,7 +597,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