Skip to content

Commit

Permalink
issue:4173932 -fixing when no logs for telemetry (#280)
Browse files Browse the repository at this point in the history
* fixing when no logs for telemetry

* pylint

* Adding a page before the tables, to make sure they don't go over the tables
  • Loading branch information
boazhaim authored Nov 19, 2024
1 parent 418a64a commit 1fbc0f8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -386,8 +386,13 @@ def create_analyzer(parsed_args, full_extracted_logs_list,
"More than 5 events burst over a minute",
critical_events_headers))

for cur_telemetry in \
existing_telemetry_analyzers = []
for telemetry_analyzer in \
[ibdianget_2_ports_primary_analyzer, ibdianget_2_ports_secondary_analyzer]:
if telemetry_analyzer:
existing_telemetry_analyzers.append(telemetry_analyzer)

for cur_telemetry in existing_telemetry_analyzers:
dataframes_for_pdf.append((f"{cur_telemetry.telemetry_type} Telemetry iteration time",
cur_telemetry.get_last_iterations_time_stats()))
dataframes_for_pdf.append((f"{cur_telemetry.telemetry_type} "
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ def create_pdf(self, data_frames_with_titles, lists_to_add):
self.set_display_mode("fullpage")
self.add_page()
self.add_images()
self.add_page()

for title, df in data_frames_with_titles:
self.add_dataframe_as_text(data_frame=df, title=title)
Expand Down

0 comments on commit 1fbc0f8

Please sign in to comment.