mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 15:17:35 +00:00
commit
7c549db2d6
@ -28,6 +28,14 @@ REQUIREMENTS = ['SoCo==0.11.1']
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
# The soco library is excessively chatty when it comes to logging and
|
||||
# causes a LOT of spam in the logs due to making a http connection to each
|
||||
# speaker every 10 seconds. Quiet it down a bit to just actual problems.
|
||||
_SOCO_LOGGER = logging.getLogger('soco')
|
||||
_SOCO_LOGGER.setLevel(logging.ERROR)
|
||||
_REQUESTS_LOGGER = logging.getLogger('requests')
|
||||
_REQUESTS_LOGGER.setLevel(logging.ERROR)
|
||||
|
||||
SUPPORT_SONOS = SUPPORT_PAUSE | SUPPORT_VOLUME_SET | SUPPORT_VOLUME_MUTE |\
|
||||
SUPPORT_PREVIOUS_TRACK | SUPPORT_NEXT_TRACK | SUPPORT_SEEK
|
||||
|
||||
|
@ -256,7 +256,7 @@ class Recorder(threading.Thread):
|
||||
""" Query the database. """
|
||||
try:
|
||||
with self.conn, self.lock:
|
||||
_LOGGER.info("Running query %s", sql_query)
|
||||
_LOGGER.debug("Running query %s", sql_query)
|
||||
|
||||
cur = self.conn.cursor()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user