1. schugschug
  2. dynamodb-mock

Commits

Jean-Tiare LE BIGOT  committed 61e0d77

TP logger -> nullHandler by default; except for tests

  • Participants
  • Parent commits 16aa54c
  • Branches default

Comments (0)

Files changed (2)

File ddbmock/utils/__init__.py

View file
  • Ignore whitespace
 }
 
 tp_logger = logging.getLogger("Throughput logger")
-tp_logger.addHandler(logging.StreamHandler())
+tp_logger.addHandler(logging.NullHandler())
 
 def push_read_throughput(table_name, value):
     if table_name not in tp_stat['read']:

File tests/__init__.py

View file
  • Ignore whitespace
 # -*- coding: utf-8 -*-
 
-from ddbmock import config
+import logging
+from ddbmock import config, utils
 
 # Much too slow otherwise
 config.DELAY_CREATING = 0.01
 config.DELAY_UPDATING = 0.01
 config.DELAY_DELETING = 0.01
+
+# Configure logging
+utils.tp_logger.addHandler(logging.StreamHandler())