mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
Added logging of regexp cache size.
This commit is contained in:
parent
d816bc6a68
commit
077fcd8d7e
@ -35,8 +35,9 @@ Module for general worldly stuff, like global variables and whatnot.
|
||||
|
||||
import fix
|
||||
|
||||
import os
|
||||
import gc
|
||||
import os
|
||||
import sre
|
||||
import time
|
||||
import types
|
||||
import atexit
|
||||
@ -90,6 +91,7 @@ def upkeep(): # Function to be run on occasion to do upkeep stuff.
|
||||
debug.msg('Uncollectable garbage: %s' % gc.garbage, 'normal')
|
||||
if 'noflush' not in tempvars:
|
||||
flush()
|
||||
debug.msg('Regexp cache size: %s' % len(sre._cache), 'verbose')
|
||||
msg = '%s upkeep ran.' % time.strftime(conf.logTimestampFormat)
|
||||
debug.msg(msg, 'verbose')
|
||||
return collected
|
||||
|
Loading…
Reference in New Issue
Block a user