Skip to content

Commit

Permalink
Specify stdout or stderr in the scribereader command
Browse files Browse the repository at this point in the history
  • Loading branch information
chi-yelp committed Feb 23, 2024
1 parent 96c9c60 commit 98eed09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tron/utils/scribereader.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,11 +223,11 @@ def read_log_stream_for_action_run(
location_selector = f"-s {paasta_cluster}"
truncation_message = (
[
f"This output is truncated. Use this command to view all lines: scribereader {location_selector} {stream_name} --min-date {min_date.date()} --max-date {max_date.date()} | jq --raw-output 'select(.tron_run_number=={int(run_num)}) | .message'"
f"This output is truncated. Use this command to view all lines: scribereader {location_selector} {stream_name} --min-date {min_date.date()} --max-date {max_date.date()} | jq --raw-output 'select(.tron_run_number=={int(run_num)} and component == \"{component}\") | .message'"
]
if max_date
else [
f"This output is truncated. Use this command to view all lines: scribereader {location_selector} {stream_name} --min-date {min_date.date()} | jq --raw-output 'select(.tron_run_number=={int(run_num)}) | .message'"
f"This output is truncated. Use this command to view all lines: scribereader {location_selector} {stream_name} --min-date {min_date.date()} | jq --raw-output 'select(.tron_run_number=={int(run_num)} and component == \"{component}\") | .message'"
]
)
truncated = truncation_message if truncated_output else []
Expand Down

0 comments on commit 98eed09

Please sign in to comment.