Update main.py
This commit is contained in:
parent
1678882366
commit
f453539aec
3
main.py
3
main.py
@ -134,12 +134,11 @@ class GadgetbridgeMQTTPublisher:
|
|||||||
]
|
]
|
||||||
|
|
||||||
def setup_logging(self):
|
def setup_logging(self):
|
||||||
"""Setup logging configuration"""
|
"""Setup logging configuration (console only)"""
|
||||||
logging.basicConfig(
|
logging.basicConfig(
|
||||||
level=logging.INFO,
|
level=logging.INFO,
|
||||||
format="%(asctime)s - %(levelname)s - %(message)s",
|
format="%(asctime)s - %(levelname)s - %(message)s",
|
||||||
handlers=[
|
handlers=[
|
||||||
logging.FileHandler("/app/logs/gadgetbridge_mqtt.log"),
|
|
||||||
logging.StreamHandler(),
|
logging.StreamHandler(),
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user