From 3295303e37eb561ac3af3dc641b55cfd7f6248b7 Mon Sep 17 00:00:00 2001 From: Nelson Torres Date: Sat, 7 Dec 2024 11:15:43 -0300 Subject: [PATCH] More configs refactor Now in the broker config file are the log configs for cryptofeed. --- piker/brokers/deribit/api.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/piker/brokers/deribit/api.py b/piker/brokers/deribit/api.py index 82cb8d8f..7efa6b65 100644 --- a/piker/brokers/deribit/api.py +++ b/piker/brokers/deribit/api.py @@ -234,16 +234,16 @@ def get_config() -> dict[str, Any]: ) conf_option = section.get('option', {}) - + conf_log = conf_option.get('log', {}) return { 'deribit': { - 'key_id': conf_option.get('api_key'), - 'key_secret': conf_option.get('api_secret'), + 'key_id': conf_option['key_id'], + 'key_secret': conf_option['key_secret'], }, 'log': { - 'filename': 'feedhandler.log', - 'level': 'DEBUG', - 'disabled': True, + 'filename': conf_log['filename'], + 'level': conf_log['level'], + 'disabled': conf_log['disabled'], } }