Merge pull request #247 from vladimir-v-diaz/develop

Disable the 'iso8601' logger.
This commit is contained in:
Vladimir Diaz 2014-08-20 08:35:49 -04:00
commit 76f74bbfe8
2 changed files with 11 additions and 0 deletions

View file

@ -129,8 +129,14 @@
import tuf._vendor.iso8601 as iso8601
import tuf._vendor.six as six
# See 'log.py' to learn how logging is handled in TUF.
logger = logging.getLogger('tuf.client.updater')
# Disable 'iso8601' logger messages to prevent 'iso8601' from clogging the
# log file.
iso8601_logger = logging.getLogger('tuf._vendor.iso8601.iso8601')
iso8601_logger.disabled = True
class Updater(object):
"""

View file

@ -57,6 +57,11 @@
# See 'log.py' to learn how logging is handled in TUF.
logger = logging.getLogger('tuf.repository_lib')
# Disable 'iso8601' logger messages to prevent 'iso8601' from clogging the
# log file.
iso8601_logger = logging.getLogger('tuf._vendor.iso8601.iso8601')
iso8601_logger.disabled = True
# Recommended RSA key sizes:
# http://www.emc.com/emc-plus/rsa-labs/historical/twirl-and-rsa-key-size.htm#table1
# According to the document above, revised May 6, 2003, RSA keys of