Closed keisuke-nakata closed 8 months ago
This truncation comes from https://github.com/pfnet/pysen/blob/main/pysen/reporter.py#L19 .
However this function _truncate_command_sequence
is called only here https://github.com/pfnet/pysen/blob/main/pysen/reporter.py#L84, where the log level is debug.
To resolve this issue, I suggest:
def report_command(self, cmd: str) -> None:
self._logger.debug(f"> {cmd}")
self._commands.append(cmd)
and remove _truncate_command_sequence
function from the codebase.
pysen --loglevel debug run lint
truncates log outputs, but I don't think it is intended. I expect to see all log outputs when--loglevel debug
.For example the line
> /Users/keisuke.nakata/.pyenv/versions/3.11.8/envs/pysen/bin/python -m black --config /Users/keisuke.nakata/Projects/pysen/pyproject.toml --diff --c...
is truncated and I couldn't catch the exact command which pysen run.