Extra loog (#60869)

This commit is contained in:
Timberpoes
2021-08-15 21:45:57 -07:00
committed by GitHub
parent cd576ab519
commit ee8eb750ee
2 changed files with 6 additions and 4 deletions
+5 -4
View File
@@ -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))
+1
View File
@@ -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)