Changed some log levels to debug

This commit is contained in:
elpatron68 2019-07-27 19:59:38 +02:00
parent 5a2f0fe30c
commit 9cd0014974

View File

@ -365,11 +365,11 @@ class MumbleBot:
elif command == var.config.get('command', 'rb_query'): elif command == var.config.get('command', 'rb_query'):
logging.info('Querying radio stations') logging.info('Querying radio stations')
if not parameter: if not parameter:
logging.info('rbquery without parameter') logging.debug('rbquery without parameter')
msg += 'You have to add a query text to search for a specific radio station.' msg += 'You have to add a query text to search for a specific radio station.'
self.send_msg(msg, text) self.send_msg(msg, text)
else: else:
logging.info('Found query parameter: ' + parameter) logging.debug('Found query parameter: ' + parameter)
self.send_msg('Searching for stations - this may take some seconds...', text) self.send_msg('Searching for stations - this may take some seconds...', text)
rb_stations = radiobrowser.getstations_byname(parameter) rb_stations = radiobrowser.getstations_byname(parameter)
msg = var.config.get('strings', 'rbqueryresult') + " :" msg = var.config.get('strings', 'rbqueryresult') + " :"
@ -380,13 +380,13 @@ class MumbleBot:
self.send_msg(msg, text) self.send_msg(msg, text)
# Play a secific station (by id) from http://www.radio-browser.info API # Play a secific station (by id) from http://www.radio-browser.info API
elif command == var.config.get('command', 'rb_play'): elif command == var.config.get('command', 'rb_play'):
logging.info('Play a station by ID') logging.debug('Play a station by ID')
if not parameter: if not parameter:
logging.info('rbplay without parameter') logging.debug('rbplay without parameter')
msg += 'Please enter a station ID from rbquery. Example: !rbplay 96748' msg += 'Please enter a station ID from rbquery. Example: !rbplay 96748'
self.send_msg(msg, text) self.send_msg(msg, text)
else: else:
logging.info('Retreiving url for station ID ' + parameter) logging.debug('Retreiving url for station ID ' + parameter)
url = radiobrowser.geturl_byid(parameter) url = radiobrowser.geturl_byid(parameter)
if url != "-1": if url != "-1":
logging.info('Found url: ' + url) logging.info('Found url: ' + url)