Skip to content

Commit

Permalink
Trim ends before add lines to logs from create env output (#22358)
Browse files Browse the repository at this point in the history
closes #22321
  • Loading branch information
karthiknadig authored Oct 26, 2023
1 parent 71a451c commit 56a88b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ async function createCondaEnv(
out.subscribe(
(value) => {
const output = splitLines(value.out).join('\r\n');
traceLog(output);
traceLog(output.trimEnd());
if (output.includes(CONDA_ENV_CREATED_MARKER) || output.includes(CONDA_ENV_EXISTING_MARKER)) {
condaEnvPath = getCondaEnvFromOutput(output);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ async function createVenv(
out.subscribe(
(value) => {
const output = value.out.split(/\r?\n/g).join(os.EOL);
traceLog(output);
traceLog(output.trimEnd());
if (output.includes(VENV_CREATED_MARKER) || output.includes(VENV_EXISTING_MARKER)) {
venvPath = getVenvFromOutput(output);
}
Expand Down

0 comments on commit 56a88b8

Please sign in to comment.