feat: mqttc读取loglevel
This commit is contained in:
parent
775322b20a
commit
84e92d3ee8
2
mqttc.py
2
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
|
||||
|
|
Loading…
Reference in New Issue