From f5588e4fa04c4246069da06af9fbc96b8f062180 Mon Sep 17 00:00:00 2001 From: Vladimir Diaz Date: Wed, 20 Aug 2014 07:52:24 -0400 Subject: [PATCH] Disable 'iso8601' logger. Disable 'iso8601' logger messages so that the log file only contain TUF-related messages. --- tuf/client/updater.py | 6 ++++++ tuf/repository_lib.py | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/tuf/client/updater.py b/tuf/client/updater.py index 7c8e7d5b..407bed86 100755 --- a/tuf/client/updater.py +++ b/tuf/client/updater.py @@ -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): """ diff --git a/tuf/repository_lib.py b/tuf/repository_lib.py index 33a2132f..8c107bbd 100755 --- a/tuf/repository_lib.py +++ b/tuf/repository_lib.py @@ -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