Make "undeleted query" & byond acc creation logs for admins respect "see debug logs" setting (#15189)

* Only send undeleted query notices to admins with debug logs on

* does the same thing to byond account creation stuff

Co-authored-by: Kyep <Kyep@users.noreply.github.com>
This commit is contained in:
Kyep
2020-12-28 18:29:38 +00:00
committed by GitHub
co-authored by Kyep
parent 6be5468342
commit 19644cdd88
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ SUBSYSTEM_DEF(dbcore)
for(var/I in active_queries)
var/datum/db_query/Q = I
if(world.time - Q.last_activity_time > 5 MINUTES)
message_admins("Found undeleted query, please check the server logs and notify coders.")
log_debug("Found undeleted query, please check the server logs and notify coders.")
log_sql("Undeleted query: \"[Q.sql]\" LA: [Q.last_activity] LAT: [Q.last_activity_time]")
qdel(Q)
if(MC_TICK_CHECK)