Clean up some errant logging warnings. (#27834)

This commit is contained in:
Charlie Nolan
2025-01-05 04:02:20 +00:00
committed by GitHub
parent a28b6652c8
commit dcc2f1c2f5
5 changed files with 16 additions and 13 deletions
+2 -2
View File
@@ -1134,13 +1134,13 @@ GLOBAL_LIST_INIT(slot_equipment_priority, list( \
LAZYINITLIST(debug_log)
create_log_in_list(debug_log, text, collapse, world.timeofday)
/mob/proc/create_log(log_type, what, target = null, turf/where = get_turf(src))
/mob/proc/create_log(log_type, what, target = null, turf/where = get_turf(src), force_no_usr_check = FALSE)
if(!ckey)
return
var/real_ckey = ckey
if(ckey[1] == "@") // Admin aghosting will do this
real_ckey = copytext(ckey, 2)
var/datum/log_record/record = new(log_type, src, what, target, where, world.time)
var/datum/log_record/record = new(log_type, src, what, target, where, world.time, force_no_usr_check)
GLOB.logging.add_log(real_ckey, record)
/proc/create_log_in_list(list/target, text, collapse = TRUE, last_log)//forgive me code gods for this shitcode proc