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() fzf = FzfPrompt()
def main(): 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: while True:
menu = ['Radios', menu = ['Radios',
'Artists', 'Artists',
@ -42,6 +36,7 @@ def main():
if search_type == 'Federated': if search_type == 'Federated':
print('Input url:') print('Input url:')
returned_obj = federate_search_by_url(input()) returned_obj = federate_search_by_url(input())
logger.info(str(returned_obj))
if selected == 'Switch instance': if selected == 'Switch instance':
with open('config.json', 'rt') as f: with open('config.json', 'rt') as f: