From 131e7c8cda92f2b88ba0b80f4c80a0579ffbb993 Mon Sep 17 00:00:00 2001 From: Vlad Dinu <62345326+vladd-bit@users.noreply.github.com> Date: Thu, 16 Jul 2026 20:52:47 +0100 Subject: [PATCH] Potential fix for code scanning alert no. 18: Clear-text logging of sensitive information Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- nifi/user_python_extensions/record_add_geolocation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nifi/user_python_extensions/record_add_geolocation.py b/nifi/user_python_extensions/record_add_geolocation.py index c4b1e879..ada7383e 100644 --- a/nifi/user_python_extensions/record_add_geolocation.py +++ b/nifi/user_python_extensions/record_add_geolocation.py @@ -194,7 +194,7 @@ def process(self, context: ProcessContext, flowFile: JavaObject) -> FlowFileTran try: record[self.geolocation_field_name] = f"{float(_lat)},{float(_long)}" except ValueError: - self.logger.debug(f"invalid lat/long values for postcode {_postcode}: {_lat}, {_long}") + self.logger.debug("invalid lat/long values encountered for a record; geolocation not set") error_records.append(record)