moved log format to config

This commit is contained in:
2024-02-28 14:56:54 +01:00
committed by Auf keinen Fall Jens
parent 314c9008e1
commit a93dda4f1e
3 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ def run():
clargs = parser.parse_args()
logging.basicConfig(level=clargs.log_level, format="[%(levelname)s] %(message)s")
logging.basicConfig(level=clargs.log_level, format=config.LOG_FORMAT)
start_server(clargs.broker_url, clargs.rest_port)
+1 -1
View File
@@ -30,7 +30,7 @@ def run():
clargs = parser.parse_args()
logging.basicConfig(level=clargs.log_level, format="[%(levelname)s] %(message)s")
logging.basicConfig(level=clargs.log_level, format=config.LOG_FORMAT)
start_server(clargs.rest_port)
+2
View File
@@ -5,6 +5,8 @@ DEFAULT_BROKER_SLOW_REST_PORT = 10003
#DEFAULT_EPICS_WRITER_URL = "http://localhost:10200/notify"
DEFAULT_LOG_LEVEL = "INFO"
LOG_FORMAT = "[%(levelname)s] %(message)s"
BSDATA_RETRIEVAL_DELAY = 60
DETECTOR_RETRIEVAL_DELAY = 10