Skip to content

Commit

Permalink
makes the log from long deletes more noisey.
Browse files Browse the repository at this point in the history
This is so that when this happens, admin's have immediate feedback as to what caused the lag.
  • Loading branch information
MrStonedOne committed Apr 29, 2016
1 parent 1728d02 commit 32cdbe2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/controllers/subsystem/garbage.dm
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ var/datum/subsystem/garbage_collector/SSgarbage
if (time > highest_del_time)
highest_del_time = time
if (time > 15)
world.log << "Error: [type] took longer then 1.5 seconds to delete (took [time/10] seconds to delete)"
log_game("Error: [type]([refID]) took longer then 1.5 seconds to delete (took [time/10] seconds to delete)")
message_admins("Error: [type]([refID]) took longer then 1.5 seconds to delete (took [time/10] seconds to delete).")
postpone(time/5)
break
++delslasttick
Expand Down

0 comments on commit 32cdbe2

Please sign in to comment.