Some logger changes

This commit is contained in:
localhost_frssoft 2022-11-10 01:15:57 +03:00
parent 52cf8869b4
commit 097051cdef

View file

@ -11,12 +11,6 @@ from pyfzf.pyfzf import FzfPrompt
fzf = FzfPrompt()
def main():
logger.remove()
logger.add(sys.stderr, filter='src.fw_api')
logger.add(sys.stderr, filter='src.fw_radios')
logger.add(sys.stderr, filter='src.fw_artists')
logger.add(sys.stderr, filter='src.fw_albums')
logger.add(sys.stderr, filter='src.fw_channels')
while True:
menu = ['Radios',
'Artists',
@ -42,6 +36,7 @@ def main():
if search_type == 'Federated':
print('Input url:')
returned_obj = federate_search_by_url(input())
logger.info(str(returned_obj))
if selected == 'Switch instance':
with open('config.json', 'rt') as f: