Browse Source

added disable-garbage-logging

Darren Ranalli 17 years ago
parent
commit
154fa4b198
1 changed files with 1 additions and 1 deletions
  1. 1 1
      direct/src/showbase/GarbageReport.py

+ 1 - 1
direct/src/showbase/GarbageReport.py

@@ -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