From 4a4b0e57831aca4294ee1b2924375ed587bd345b Mon Sep 17 00:00:00 2001 From: thomwolf Date: Fri, 14 Dec 2018 14:46:25 +0100 Subject: [PATCH] remove logging. basicConfig from library code --- pytorch_pretrained_bert/modeling.py | 3 --- pytorch_pretrained_bert/tokenization.py | 3 --- 2 files changed, 6 deletions(-) diff --git a/pytorch_pretrained_bert/modeling.py b/pytorch_pretrained_bert/modeling.py index 28f22287d2..acdc741f6d 100644 --- a/pytorch_pretrained_bert/modeling.py +++ b/pytorch_pretrained_bert/modeling.py @@ -34,9 +34,6 @@ from torch.nn import CrossEntropyLoss from .file_utils import cached_path -logging.basicConfig(format = '%(asctime)s - %(levelname)s - %(name)s - %(message)s', - datefmt = '%m/%d/%Y %H:%M:%S', - level = logging.INFO) logger = logging.getLogger(__name__) PRETRAINED_MODEL_ARCHIVE_MAP = { diff --git a/pytorch_pretrained_bert/tokenization.py b/pytorch_pretrained_bert/tokenization.py index c7ef20ddef..5954b78f68 100644 --- a/pytorch_pretrained_bert/tokenization.py +++ b/pytorch_pretrained_bert/tokenization.py @@ -25,9 +25,6 @@ import logging from .file_utils import cached_path -logging.basicConfig(format = '%(asctime)s - %(levelname)s - %(name)s - %(message)s', - datefmt = '%m/%d/%Y %H:%M:%S', - level = logging.INFO) logger = logging.getLogger(__name__) PRETRAINED_VOCAB_ARCHIVE_MAP = {