From 251263eec7958e08946d2e5da953e27706fec19c Mon Sep 17 00:00:00 2001 From: croneter Date: Tue, 8 Jan 2019 20:14:48 +0100 Subject: [PATCH] Revert "Log locking of DB" This reverts commit f5d98d66d444adbeb3ee2bfff0c540696e56df6b. --- resources/lib/kodi_db/common.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/resources/lib/kodi_db/common.py b/resources/lib/kodi_db/common.py index 2aa70c4f..08f466eb 100644 --- a/resources/lib/kodi_db/common.py +++ b/resources/lib/kodi_db/common.py @@ -3,12 +3,11 @@ from __future__ import absolute_import, division, unicode_literals from threading import Lock from functools import wraps -from logging import getLogger from .. import utils, path_ops, app KODIDB_LOCK = Lock() -LOG = getLogger('PLEX.playback') + def catch_operationalerrors(method): @wraps(method) @@ -41,9 +40,7 @@ class KodiDBBase(object): def __enter__(self): if self.lock: - LOG.info('acquiring lock') KODIDB_LOCK.acquire() - LOG.info('acquiring lock succeeded') self.kodiconn = utils.kodi_sql(self.db_kind) self.cursor = self.kodiconn.cursor() if self._texture_db: @@ -64,7 +61,6 @@ class KodiDBBase(object): if self.artconn: self.artconn.close() if self.lock: - LOG.info('releasing lock') KODIDB_LOCK.release() def art_urls(self, kodi_id, kodi_type):