We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Log file grows like crazy from messages sent by soco and urllib3. The below additions fix that.
#!/usr/bin/env python3 """ Sonos NodeServer for UDI Polyglot v2 by Einstein.42 (James Milne) [email protected] """ import polyinterface import sys import soco import requests import json import logging LOGGER = polyinterface.LOGGER LOGGER.setLevel(50) logging.getLogger('soco').setLevel(logging.WARNING) logging.getLogger('urllib3').setLevel(logging.WARNING) with open('server.json') as data: SERVERDATA = json.load(data) data.close() try: VERSION = SERVERDATA['credits'][0]['version'] except (KeyError, ValueError): LOGGER.info('Version not found in server.json.') VERSION = '0.0.0'
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Log file grows like crazy from messages sent by soco and urllib3. The below additions fix that.
The text was updated successfully, but these errors were encountered: