Skip to content

Commit

Permalink
avoids empty prefix output in case outputting timestamps
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasohara committed Jan 25, 2024
1 parent 25e6bfe commit 617a668
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mezcla/debug.py
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,8 @@ def trace_expr(level, *values, **kwargs):
expressions = []

# Output initial text
trace(level, prefix, no_eol=no_eol)
if prefix:
trace(level, prefix, no_eol=no_eol)

# Output each expression value
for expression, value in zip_longest(expressions, values):
Expand Down

0 comments on commit 617a668

Please sign in to comment.