[MIRROR] don't infinitely recurse on attempting to log after shutdown [MDB IGNORE] (#22026)

* don't infinitely recurse on attempting to log after shutdown (#76229)

* don't infinitely recurse on attempting to log after shutdown

---------

Co-authored-by: Zephyr <12817816+ZephyrTFA@users.noreply.github.com>
Co-authored-by: lessthanthree <83487515+lessthnthree@users.noreply.github.com>
This commit is contained in:
SkyratBot
2023-07-01 16:17:59 -04:00
committed by GitHub
co-authored by Zephyr lessthanthree
parent eaf6c62f02
commit bb5ef264c1
-3
View File
@@ -260,9 +260,6 @@ GENERAL_PROTECT_DATUM(/datum/log_holder)
/// the data list is optional and will be recursively json serialized.
/datum/log_holder/proc/Log(category, message, list/data)
// This is Log because log is a byond internal proc
if(shutdown)
stack_trace("Performing logging after shutdown! This might not be functional in the future!")
// but for right now it's fine
// do not include the message because these go into the runtime log and we might be secret!
if(!istext(message))