From 84e92d3ee86631fd8c4a95491031f6286b5d8c69 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Wed, 29 May 2024 09:26:36 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20mqttc=E8=AF=BB=E5=8F=96loglevel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mqttc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mqttc.py b/mqttc.py index 149efbd..c5825aa 100644 --- a/mqttc.py +++ b/mqttc.py @@ -21,7 +21,7 @@ import conf LOG_FILE = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'mqttc.log') -logging.basicConfig(level=logging.WARNING, +logging.basicConfig(level=conf.LOG_LEVEL, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', handlers=[ logging.StreamHandler(sys.stdout), # Log to console