From 9d75b60f69eaeaf759b052b3982f8b959896ae41 Mon Sep 17 00:00:00 2001 From: sasha80 Date: Thu, 10 Oct 2024 14:15:09 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D1=80=D0=B0=D0=B1=D0=BE=D1=82?= =?UTF-8?q?=D0=BA=D0=B0.=20=D0=A1=D0=BB=D0=B8=D1=88=D0=BA=D0=BE=D0=BC=20?= =?UTF-8?q?=D0=BC=D0=BD=D0=BE=D0=B3=D0=BE=20=D1=81=D0=BE=D0=BE=D0=B1=D1=89?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B9=20=D0=B2=20=D0=B6=D1=83=D1=80=D0=BD?= =?UTF-8?q?=D0=B0=D0=BB=20=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modbus/logger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modbus/logger.py b/modbus/logger.py index 548dd40c..3f57212c 100644 --- a/modbus/logger.py +++ b/modbus/logger.py @@ -8,7 +8,7 @@ def get_logger(source_file, log_dir='logs'): log_format = '[%(asctime)s] %(module)s:%(lineno)s %(message)s' logging.basicConfig(format=log_format) log = logging.getLogger() - log.setLevel(logging.DEBUG) + log.setLevel(logging.INFO) file_handler = logging.FileHandler(f'{log_dir}/{source_file}.log') file_handler.setFormatter(logging.Formatter(log_format)) log.addHandler(file_handler)