From 90ae165e5098db133ec2bd9b38ca1b39b32ab8ae Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Sun, 26 Sep 2021 02:48:37 +0200 Subject: [PATCH] [MIRROR] Asset log config (#8400) * Asset log config (#61687) Adds config to toggle on/off logging to asset.log Special thanks to @ TiviPlus who stole it from @ TiviPlus at tgstation/TerraGov-Marine-Corps#8406 * Asset log config Co-authored-by: TiviPlus <57223640+TiviPlus@users.noreply.github.com> --- code/__HELPERS/_logging.dm | 3 ++- code/controllers/configuration/entries/general.dm | 2 ++ config/config.txt | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/code/__HELPERS/_logging.dm b/code/__HELPERS/_logging.dm index a787afef7a0..016dd8cf038 100644 --- a/code/__HELPERS/_logging.dm +++ b/code/__HELPERS/_logging.dm @@ -105,7 +105,8 @@ GLOBAL_LIST_INIT(testing_global_profiler, list("_PROFILE_NAME" = "Global")) WRITE_LOG(GLOB.world_paper_log, "PAPER: [text]") /proc/log_asset(text) - WRITE_LOG(GLOB.world_asset_log, "ASSET: [text]") + if(CONFIG_GET(flag/log_asset)) + WRITE_LOG(GLOB.world_asset_log, "ASSET: [text]") /proc/log_access(text) if (CONFIG_GET(flag/log_access)) diff --git a/code/controllers/configuration/entries/general.dm b/code/controllers/configuration/entries/general.dm index 42874afb661..e38703756dc 100644 --- a/code/controllers/configuration/entries/general.dm +++ b/code/controllers/configuration/entries/general.dm @@ -72,6 +72,8 @@ /datum/config_entry/flag/log_cloning // log cloning actions. +/datum/config_entry/flag/log_asset //asset logging + /datum/config_entry/flag/log_vote // log voting /datum/config_entry/flag/log_whisper // log client whisper diff --git a/config/config.txt b/config/config.txt index 5faffabc4e7..a21839aaab2 100644 --- a/config/config.txt +++ b/config/config.txt @@ -103,6 +103,9 @@ LOG_ADMIN ## log admin chat LOG_ADMINCHAT +## log asset debug logs +#LOG_ASSET + ## log client access (logon/logoff) LOG_ACCESS