From 8ae8d6aa279fb4cda651758c401f563b4bcac73a Mon Sep 17 00:00:00 2001 From: stefan-linux Date: Wed, 30 Aug 2023 14:06:48 +0200 Subject: [PATCH] set logging to INFO and updated log message --- front/plugins/unifi_import/script.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/front/plugins/unifi_import/script.py b/front/plugins/unifi_import/script.py index e10b68c5..7e04a087 100755 --- a/front/plugins/unifi_import/script.py +++ b/front/plugins/unifi_import/script.py @@ -32,7 +32,7 @@ logging.basicConfig( format='%(asctime)s:%(levelname)s:%(name)s:%(message)s' ) unifi_logger = logging.getLogger('[UNIFI]') -unifi_logger.setLevel(logging.DEBUG) +unifi_logger.setLevel(logging.INFO) requests.packages.urllib3.disable_warnings(InsecureRequestWarning) @@ -87,7 +87,7 @@ def main(): # Insert list into the log service_monitoring_log(e.primaryId, e.secondaryId, e.created, e.watched1, e.watched2, e.watched3, e.watched4, e.extra, e.foreignKey ) - unifi_logger.info(f'Scan finished, added {len(newEntries)} devices') + unifi_logger.info(f'Scan finished, found {len(newEntries)} devices') # ----------------------------------------------------------------------------- def get_entries(newEntries):