only log errors to loggly

This commit is contained in:
Alex Grintsvayg 2018-03-01 14:58:07 -05:00
parent 6395ac4f59
commit d086fb9547

View file

@ -142,7 +142,7 @@ def get_loggly_url(token=None, version=None):
def configure_loggly_handler(): def configure_loggly_handler():
if build_type.BUILD == 'dev': if build_type.BUILD == 'dev':
return return
level = logging.WARNING level = logging.ERROR
handler = get_loggly_handler(level=level, installation_id=conf.settings.installation_id, handler = get_loggly_handler(level=level, installation_id=conf.settings.installation_id,
session_id=conf.settings.get_session_id()) session_id=conf.settings.get_session_id())
log = logging.getLogger("lbrynet") log = logging.getLogger("lbrynet")