mirror of
https://github.com/paulscherrerinstitute/sf_daq_broker.git
synced 2026-07-07 11:25:09 +02:00
mimic config usage of broker in slow broker
This commit is contained in:
committed by
Auf keinen Fall Jens
co-authored by
Auf keinen Fall Jens
parent
45c7c4a2f8
commit
314c9008e1
@@ -4,6 +4,7 @@ import socket
|
||||
|
||||
import bottle
|
||||
|
||||
from sf_daq_broker import config
|
||||
from sf_daq_broker.broker_manager_slow import DetectorManager
|
||||
from sf_daq_broker.rest_api import register_rest_api
|
||||
|
||||
@@ -24,8 +25,8 @@ ENDPOINTS_POST = [
|
||||
def run():
|
||||
parser = argparse.ArgumentParser(description="detector settings server")
|
||||
|
||||
parser.add_argument("--rest_port", default=10003, type=int, help="REST-API port")
|
||||
parser.add_argument("--log_level", default="INFO", choices=["CRITICAL", "ERROR", "WARNING", "INFO", "DEBUG"], help="log level")
|
||||
parser.add_argument("--rest_port", default=config.DEFAULT_BROKER_SLOW_REST_PORT, type=int, help="REST-API port")
|
||||
parser.add_argument("--log_level", default=config.DEFAULT_LOG_LEVEL, choices=["CRITICAL", "ERROR", "WARNING", "INFO", "DEBUG"], help="log level")
|
||||
|
||||
clargs = parser.parse_args()
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#DEFAULT_STREAM_OUTPUT_PORT = 12500
|
||||
#DEFAULT_QUEUE_LENGTH = 100
|
||||
DEFAULT_BROKER_REST_PORT = 10002
|
||||
DEFAULT_BROKER_SLOW_REST_PORT = 10003
|
||||
#DEFAULT_EPICS_WRITER_URL = "http://localhost:10200/notify"
|
||||
DEFAULT_LOG_LEVEL = "INFO"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user