mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Dispatcher bugfix queues not being disabled properly (#13364)
* Dispatcher bugfix queues not being disabled properly Introduced in #13355 Affected queues: Alerting, Discovery, Services, Ping Adjust log level of several messages * better formatting? looks like garbage python black
This commit is contained in:
@@ -222,9 +222,9 @@ class DB:
|
||||
import pymysql
|
||||
|
||||
pymysql.install_as_MySQLdb()
|
||||
logger.info("Using pure python SQL client")
|
||||
logger.debug("Using pure python SQL client")
|
||||
except ImportError:
|
||||
logger.info("Using other SQL client")
|
||||
logger.debug("Using other SQL client")
|
||||
|
||||
try:
|
||||
import MySQLdb
|
||||
@@ -421,7 +421,7 @@ class RedisLock(Lock):
|
||||
self._redis = redis.Redis(**kwargs)
|
||||
self._redis.ping()
|
||||
self._namespace = namespace
|
||||
logger.info(
|
||||
logger.debug(
|
||||
"Created redis lock manager with socket_timeout of {}s".format(
|
||||
redis_kwargs["socket_timeout"]
|
||||
)
|
||||
@@ -503,7 +503,7 @@ class RedisUniqueQueue(object):
|
||||
self._redis = redis.Redis(**kwargs)
|
||||
self._redis.ping()
|
||||
self.key = "{}:{}".format(namespace, name)
|
||||
logger.info(
|
||||
logger.debug(
|
||||
"Created redis queue with socket_timeout of {}s".format(
|
||||
redis_kwargs["socket_timeout"]
|
||||
)
|
||||
|
Reference in New Issue
Block a user