Add labthings debug config when spinning up a server
This commit is contained in:
parent
2c2a52cb97
commit
1a13cbe592
1 changed files with 2 additions and 0 deletions
|
|
@ -115,6 +115,8 @@ def serve_from_cli(argv: Optional[list[str]] = None) -> None:
|
|||
lt_config, internal_config = _full_config_from_args(args)
|
||||
|
||||
server = lt.ThingServer.from_config(lt_config)
|
||||
if args.debug:
|
||||
lt.logs.configure_thing_logger(logging.DEBUG)
|
||||
customise_server(
|
||||
server, internal_config["log_folder"], internal_config["scans_folder"]
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue