Fix pylint logging-fstring-interpolation warning

- Replace f-string with lazy % formatting in logging.debug() call
- Resolves W1203 pylint warning for better logging performance
- Achieves 10.00/10 pylint rating
This commit is contained in:
Kirill Markin 2025-05-25 11:07:43 +03:00
parent 14d2b3b36e
commit b04dd8df63
No known key found for this signature in database
GPG key ID: 03AB9530E15B9C1C

View file

@ -79,7 +79,7 @@ def process_line(
except (ValueError, OSError) as e:
# Handle case where relpath fails (e.g., in CI when cwd is unavailable)
# Use absolute path conversion as fallback
logging.debug(f'os.path.relpath failed for {full_path}, using fallback: {e}')
logging.debug('os.path.relpath failed for %s, using fallback: %s', full_path, e)
if os.path.isabs(full_path) and os.path.isabs(path):
# Both are absolute, try manual relative calculation
try: