Skip to content

Commit 5c39463

Browse files
committed
Tidy controller method
1 parent a05ae6c commit 5c39463

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/blueapi/cli/cli.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,15 +254,16 @@ def controller(
254254
ctx.ensure_object(dict)
255255
ctx.obj["fmt"] = OutputFormat(output)
256256

257-
_load_config(ctx, None)
258-
config: ApplicationConfig = ctx.obj["config"]
257+
config: ApplicationConfig = ConfigLoader(ApplicationConfig).load()
259258

260259
if url is not None:
261260
config.api.url = HttpUrl(url)
262261

263262
tmp_client = BlueapiClient.from_config(config)
264263
config.stomp = tmp_client.get_stomp_config()
265264

265+
ctx.obj["config"] = config
266+
set_up_logging(config.logging)
266267
ctx.obj["client"] = BlueapiClient.from_config(config)
267268

268269

0 commit comments

Comments
 (0)