More configs refactor
Now in the broker config file are the log configs for cryptofeed.max_pain_deribit
parent
f31d868a55
commit
3295303e37
|
@ -234,16 +234,16 @@ def get_config() -> dict[str, Any]:
|
||||||
)
|
)
|
||||||
|
|
||||||
conf_option = section.get('option', {})
|
conf_option = section.get('option', {})
|
||||||
|
conf_log = conf_option.get('log', {})
|
||||||
return {
|
return {
|
||||||
'deribit': {
|
'deribit': {
|
||||||
'key_id': conf_option.get('api_key'),
|
'key_id': conf_option['key_id'],
|
||||||
'key_secret': conf_option.get('api_secret'),
|
'key_secret': conf_option['key_secret'],
|
||||||
},
|
},
|
||||||
'log': {
|
'log': {
|
||||||
'filename': 'feedhandler.log',
|
'filename': conf_log['filename'],
|
||||||
'level': 'DEBUG',
|
'level': conf_log['level'],
|
||||||
'disabled': True,
|
'disabled': conf_log['disabled'],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue