From 839d492bb1f3bdcd63e556afdee0a0ceb0ebf1c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Fri, 23 Feb 2024 16:12:56 +0100 Subject: [PATCH] Indent debug log for readability --- src/pip_deepfreeze/pip.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pip_deepfreeze/pip.py b/src/pip_deepfreeze/pip.py index 31c65ea..d1d982c 100644 --- a/src/pip_deepfreeze/pip.py +++ b/src/pip_deepfreeze/pip.py @@ -3,6 +3,7 @@ import os import shlex import sys +import textwrap from enum import Enum from functools import lru_cache from importlib.resources import path as resource_path @@ -186,7 +187,7 @@ def pip_upgrade_project( ).strip() if constraints: log_debug(f"with {constraints_without_editables_filename}:") - log_debug(constraints) + log_debug(textwrap.indent(constraints, prefix=" ")) else: log_debug(f"with empty {constraints_without_editables_filename}.") check_call(cmd, env=dict(os.environ, **env))