StringTree: Beautify debug logging

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2025-01-28 05:08:50 +01:00
commit 126ecbb411
2 changed files with 22 additions and 21 deletions

View file

@ -27,7 +27,7 @@ def parse(s: str, allow_full_lines: bool=True, root_content: str='root') -> Stri
root = StringTree('', content=root_content)
sec = ''
for line in s.splitlines():
slog(DEBUG, "line=", line)
slog(DEBUG, f'Parsing: "{line}"')
line = _cleanup_line(line)
#slog(DEBUG, "cleaned line=", line)
if not len(line):