added disable-garbage-logging

This commit is contained in:
Darren Ranalli 2009-01-26 19:44:46 +00:00
parent 4c3e9643f3
commit 154fa4b198

View File

@ -517,7 +517,7 @@ class GarbageLogger(GarbageReport):
def checkForGarbageLeaks():
gc.collect()
numGarbage = len(gc.garbage)
if numGarbage:
if numGarbage and not configIsToday('disable-garbage-logging'):
print
gr = GarbageLogger('found garbage', threaded=False)
print