Skip to content

Commit 72b222e

Browse files
committed
bot: Only log to Sentry last line of grcov's error and output
1 parent 4c82736 commit 72b222e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bot/code_coverage_bot/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ def run_check(command, **kwargs):
5959
f"Command failed with code: {proc.returncode}",
6060
exit=proc.returncode,
6161
command=" ".join(command),
62-
output=output,
63-
error=error,
62+
output=output.split("\n")[-1],
63+
error=error.split("\n")[-1],
6464
)
6565
print(f"Output:\n{output}")
6666
print(f"Error:\n{error}")

0 commit comments

Comments
 (0)