From 8167c08ad8fc6a808acb880083c230b0a02ca407 Mon Sep 17 00:00:00 2001 From: Anastasiia Pnevskaia Date: Tue, 29 Oct 2024 12:59:37 +0100 Subject: [PATCH] Minor corrections. --- src/backend/backend_ga.py | 2 +- src/backend/backend_ga4.py | 2 +- src/utils/opt_in_checker.py | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/backend/backend_ga.py b/src/backend/backend_ga.py index aea4fef..7171c09 100644 --- a/src/backend/backend_ga.py +++ b/src/backend/backend_ga.py @@ -38,7 +38,7 @@ def send(self, message: Message): if self.backend_url.lower().startswith('http'): req = request.Request(self.backend_url, data=data) else: - log.warning("Incorrect backend URL.") + log.info("Incorrect backend URL.") return request.urlopen(req) #nosec diff --git a/src/backend/backend_ga4.py b/src/backend/backend_ga4.py index 72a1b4a..376adf6 100644 --- a/src/backend/backend_ga4.py +++ b/src/backend/backend_ga4.py @@ -41,7 +41,7 @@ def send(self, message: dict): if self.backend_url.lower().startswith('http'): req = request.Request(self.backend_url, data=data) else: - log.warning("Incorrect backend URL.") + log.info("Incorrect backend URL.") return request.urlopen(req) # nosec diff --git a/src/utils/opt_in_checker.py b/src/utils/opt_in_checker.py index 8f464f7..03acfa7 100644 --- a/src/utils/opt_in_checker.py +++ b/src/utils/opt_in_checker.py @@ -97,12 +97,12 @@ def consent_file_base_dir(): dir_to_check = Path.home() if dir_to_check is None: - log.warning('Failed to find location of the openvino_telemetry file.') + log.info('Failed to find location of the openvino_telemetry file.') return None consent_base_dir = os.path.expandvars(dir_to_check) if not os.path.isdir(consent_base_dir): - log.warning('Failed to find location of the openvino_telemetry file.') + log.info('Failed to find location of the openvino_telemetry file.') return None return consent_base_dir @@ -118,7 +118,7 @@ def consent_file_subdirectory(): return 'Intel Corporation' elif platform in ['Linux', 'Darwin']: return 'intel' - log.warning('Failed to find location of the openvino_telemetry file.') + log.info('Failed to find location of the openvino_telemetry file.') return None def consent_file(self):