From 77829e397b6cdf0b73957eba419bdec0edd86fcf Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Wed, 15 Dec 2021 11:54:57 -0800 Subject: [PATCH] Don't log DB connection string on error (#61927) --- homeassistant/components/recorder/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/homeassistant/components/recorder/__init__.py b/homeassistant/components/recorder/__init__.py index 333d955ab63..f9dde1f17c9 100644 --- a/homeassistant/components/recorder/__init__.py +++ b/homeassistant/components/recorder/__init__.py @@ -824,8 +824,7 @@ class Recorder(threading.Thread): return migration.get_schema_version(self) except Exception as err: # pylint: disable=broad-except _LOGGER.exception( - "Error during connection setup to %s: %s (retrying in %s seconds)", - self.db_url, + "Error during connection setup: %s (retrying in %s seconds)", err, self.db_retry_wait, )