Skip to content

Commit

Permalink
Update _logging.dm
Browse files Browse the repository at this point in the history
  • Loading branch information
dwasint committed Jun 10, 2024
1 parent 6505847 commit 2a00a3b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/__HELPERS/logging/_logging.dm
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,6 @@ GLOBAL_LIST_INIT(testing_global_profiler, list("_PROFILE_NAME" = "Global"))
* * log_globally - boolean checking whether or not we write this log to the log file
*/
/atom/proc/log_message(message, message_type, color = null, log_globally = TRUE, loki = TRUE, severity = "info", category)
if(!log_globally)
return

if(!category)
category = return_category(message_type)

Expand All @@ -135,6 +132,9 @@ GLOBAL_LIST_INIT(testing_global_profiler, list("_PROFILE_NAME" = "Global"))
if(source.client)
SSloki.send_user_log(category, message, severity, source.key, "No Target")

if(!log_globally)
return

switch(message_type)
/// ship both attack logs and victim logs to the end of round attack.log just to ensure we don't lose information
if(LOG_ATTACK, LOG_VICTIM)
Expand Down

0 comments on commit 2a00a3b

Please sign in to comment.