log level added to config
This commit is contained in:
parent
81b11969ca
commit
ae0ae97b5c
@ -1,8 +1,11 @@
|
||||
import geo
|
||||
import logging
|
||||
import report
|
||||
from topics import *
|
||||
|
||||
DEBUG = False
|
||||
DEBUG = False # False: logging to stdout with given LOGLEVEL - True: logging all to localhost:19996 and warnings or higher to stdout
|
||||
LOGLEVEL = logging.INFO
|
||||
|
||||
GEO_POSITION = geo.gps.coordinate(lat=49.519167, lon=9.3672222)
|
||||
|
||||
APP_NAME = "smart_brain"
|
||||
|
@ -46,7 +46,7 @@ if __name__ == "__main__":
|
||||
report.appLoggingConfigure(None, 'stdout', ((config.APP_NAME, logging.DEBUG), ),
|
||||
target_level=logging.WARNING, fmt=report.SHORT_FMT, host='localhost', port=19996)
|
||||
else:
|
||||
report.stdoutLoggingConfigure(((config.APP_NAME, logging.WARNING), ), report.SHORT_FMT)
|
||||
report.stdoutLoggingConfigure(((config.APP_NAME, config.LOGLEVEL), ), report.SHORT_FMT)
|
||||
|
||||
#
|
||||
# MQTT Client
|
||||
|
Loading…
x
Reference in New Issue
Block a user