Skip to content

Commit

Permalink
Clarified the naming of the log width argument.
Browse files Browse the repository at this point in the history
  • Loading branch information
freakboy3742 committed Jan 16, 2024
1 parent e6a2841 commit 8cb950d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/briefcase/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class RichConsoleHighlighter(RegexHighlighter):
class Printer:
"""Interface for printing and managing output to the console and/or log."""

def __init__(self, width=180):
def __init__(self, log_width=180):
"""Create an interface for printing and managing output to the console and/or
log.
Expand All @@ -80,7 +80,7 @@ def __init__(self, width=180):
:param width: The width at which content should be wrapped.
"""
self.width = width
self.log_width = log_width

# A wrapper around the console
self.console = RichConsole(
Expand All @@ -97,7 +97,7 @@ def __init__(self, width=180):
self.log = RichConsole(
file=self.dev_null,
record=True,
width=self.width,
width=self.log_width,
force_interactive=False,
force_terminal=False,
no_color=True,
Expand Down Expand Up @@ -404,7 +404,7 @@ def _build_log(self, command):
f"{thread} traceback:",
Traceback(
trace=stacktrace,
width=self.print.width,
width=self.print.log_width,
show_locals=True,
),
new_line_start=True,
Expand Down

0 comments on commit 8cb950d

Please sign in to comment.