This is an automated email from the ASF dual-hosted git repository. rkk pushed a commit to branch cm-verbosity-patch-2 in repository https://gitbox.apache.org/repos/asf/incubator-sdap-ingester.git
commit a15f11f178c5c82d4572658a1b56a096962175d5 Author: rileykk <[email protected]> AuthorDate: Thu Jan 25 15:38:48 2024 -0800 Suppress overly verbose loggers instead of all loggers to INFO --- collection_manager/collection_manager/main.py | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/collection_manager/collection_manager/main.py b/collection_manager/collection_manager/main.py index 8eead68..48c6151 100644 --- a/collection_manager/collection_manager/main.py +++ b/collection_manager/collection_manager/main.py @@ -24,8 +24,21 @@ from collection_manager.services.history_manager import ( FileIngestionHistoryBuilder, SolrIngestionHistoryBuilder, md5sum_from_filepath) -logging.basicConfig(level=logging.INFO, format="%(asctime)s [%(levelname)s] [%(name)s::%(lineno)d] %(message)s") -logging.getLogger("pika").setLevel(logging.WARNING) +logging.basicConfig(level=logging.DEBUG, format="%(asctime)s [%(levelname)s] [%(name)s::%(lineno)d] %(message)s") + +SUPPRESS = [ + 'botocore', + 's3transfer', + 'urllib3', + 'pika', + 'boto3', + 'aioboto3' +] + +for logger_name in SUPPRESS: + logging.getLogger(logger_name).setLevel(logging.WARNING) + + logger = logging.getLogger(__name__)
