From 4df6b474acf9ad2241fe1593f5b0a28a28284214 Mon Sep 17 00:00:00 2001 From: Onkel Andy Date: Mon, 3 Jun 2024 21:15:57 +0200 Subject: [PATCH 1/2] database plugin: copy_database does not disable itself after success anymore (why should it...?). --- database/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/database/__init__.py b/database/__init__.py index 581e336c2..491cf6605 100755 --- a/database/__init__.py +++ b/database/__init__.py @@ -406,8 +406,8 @@ def copy_databasefile(self): except Exception as e: self.logger.error( f"Error copying SQLite3 database file: {e}") - param_dict = {"copy_database": False} - self.update_config_section(param_dict) + #param_dict = {"copy_database": False} + #self.update_config_section(param_dict) return From c736882d5cf1e4dbe5153726e721ed2ec982b13f Mon Sep 17 00:00:00 2001 From: Onkel Andy Date: Mon, 3 Jun 2024 21:16:17 +0200 Subject: [PATCH 2/2] database plugin: change log message of copy database to info (instead of warning) --- database/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/database/__init__.py b/database/__init__.py index 491cf6605..1a02a6475 100755 --- a/database/__init__.py +++ b/database/__init__.py @@ -398,11 +398,11 @@ def copy_databasefile(self): database_name = '' # copy the database file - self.logger.warning( f"Starting to copy SQLite3 database file from {database_name} to {self._copy_database_name}") + self.logger.info( f"Starting to copy SQLite3 database file from {database_name} to {self._copy_database_name}") import shutil try: shutil.copy2(database_name, self._copy_database_name) - self.logger.warning("Finished copying SQLite3 database file") + self.logger.info("Finished copying SQLite3 database file") except Exception as e: self.logger.error( f"Error copying SQLite3 database file: {e}")