diff --git a/code/__HELPERS/_logging.dm b/code/__HELPERS/_logging.dm index 9419c2e22bf..a787afef7a0 100644 --- a/code/__HELPERS/_logging.dm +++ b/code/__HELPERS/_logging.dm @@ -115,13 +115,14 @@ GLOBAL_LIST_INIT(testing_global_profiler, list("_PROFILE_NAME" = "Global")) * Writes to a special log file if the log_suspicious_login config flag is set, * which is intended to contain all logins that failed under suspicious circumstances. * - * Mirrors this log entry to log_access as well, so this proc doesn't need to be used - * alongside log_access and can replace it where appropriate. + * Mirrors this log entry to log_access when access_log_mirror is TRUE, so this proc + * doesn't need to be used alongside log_access and can replace it where appropriate. */ -/proc/log_suspicious_login(text) +/proc/log_suspicious_login(text, access_log_mirror = TRUE) if (CONFIG_GET(flag/log_suspicious_login)) WRITE_LOG(GLOB.world_suspicious_login_log, "SUSPICIOUS_ACCESS: [text]") - log_access(text) + if(access_log_mirror) + log_access(text) /proc/log_law(text) if (CONFIG_GET(flag/log_law)) diff --git a/code/modules/tgui_panel/telemetry.dm b/code/modules/tgui_panel/telemetry.dm index e1abfb1e125..98ba1f14b8b 100644 --- a/code/modules/tgui_panel/telemetry.dm +++ b/code/modules/tgui_panel/telemetry.dm @@ -78,3 +78,4 @@ var/msg = "[key_name(client)] has a banned account in connection history! (Matched: [found["ckey"]], [found["address"]], [found["computer_id"]])" message_admins(msg) log_admin_private(msg) + log_suspicious_login(msg, access_log_mirror = FALSE)