Skip to content

Commit

Permalink
Getting close...
Browse files Browse the repository at this point in the history
  • Loading branch information
freakboy3742 committed Oct 2, 2022
1 parent ed9ab08 commit b9d3870
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/briefcase/integrations/subprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ def _stream_output_thread(self, popen_process):
output_line = ensure_str(popen_process.stdout.readline())
if output_line:
self.tools.logger.info(output_line)
elif output_line == "":
else:
return

def cleanup(self, label, popen_process):
Expand Down
13 changes: 11 additions & 2 deletions tests/console/test_Log.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,23 @@ def test_save_log_to_file_no_exception(tmp_path, now):
logger.save_log = True
logger.debug("this is debug output")
logger.info("this is info output")
logger.info("this is [bold]info output with markup[/bold]")
logger.info("this is [bold]info output with escaped markup[/bold]", markup=True)
logger.warning("this is warning output")
logger.error("this is error output")
logger.print("this is print output")
logger.print.to_log("this is log output")
logger.print.to_console("this is console output")

logger.info("this is [bold]info output with markup[/bold]")
logger.info(
"this is [bold]info output with markup and a prefix[/bold]", prefix="wibble"
)
logger.info("this is [bold]info output with escaped markup[/bold]", markup=True)
logger.info(
"this is [bold]info output with escaped markup and a prefix[/bold]",
prefix="wibble",
markup=True,
)

logger.save_log_to_file(command=command)

log_filepath = tmp_path / "briefcase.2022_06_25-16_12_29.dev.log"
Expand Down

0 comments on commit b9d3870

Please sign in to comment.