From 112aa3a5288b322ef0fc2f1d605541b1ae5318e0 Mon Sep 17 00:00:00 2001 From: XXXXRT666 Date: Thu, 8 Aug 2024 02:34:14 +0800 Subject: [PATCH] chores --- GPT_SoVITS/utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/GPT_SoVITS/utils.py b/GPT_SoVITS/utils.py index 7984b5a8..177eda14 100644 --- a/GPT_SoVITS/utils.py +++ b/GPT_SoVITS/utils.py @@ -18,7 +18,7 @@ logging.getLogger("matplotlib").setLevel(logging.ERROR) MATPLOTLIB_FLAG = False -logging.basicConfig(stream=sys.stdout, level=logging.DEBUG) +logging.basicConfig(stream=sys.stdout, level=logging.ERROR) logger = logging @@ -319,13 +319,13 @@ def check_git_hash(model_dir): def get_logger(model_dir, filename="train.log"): global logger logger = logging.getLogger(os.path.basename(model_dir)) - logger.setLevel(logging.DEBUG) + logger.setLevel(logging.ERROR) formatter = logging.Formatter("%(asctime)s\t%(name)s\t%(levelname)s\t%(message)s") if not os.path.exists(model_dir): os.makedirs(model_dir) h = logging.FileHandler(os.path.join(model_dir, filename)) - h.setLevel(logging.DEBUG) + h.setLevel(logging.ERROR) h.setFormatter(formatter) logger.addHandler(h) return logger