Skip to content

Commit

Permalink
3.0 update log (#647)
Browse files Browse the repository at this point in the history
* fix: conf path

* fix: conf path

* remote_client support strict_host_key_checking

* Clean rca old *scene.py files

* fix some bugs

* fix: gather all not support scope option

* add check task

* update log

* update log

* update log
  • Loading branch information
wayyoungboy authored Dec 20, 2024
1 parent 0c7f21e commit 275d0f4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/handler/gather/gather_component_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,12 @@ def handle(self):
finally:
self.stdio.stop_loading("succeed")

last_info = "For result details, please run cmd \033[32m' cat {0} '\033[0m\n".format(os.path.join(self.store_dir, "result_summary.txt"))
self.stdio.print(last_info)
if os.path.exists(os.path.join(self.store_dir, "result_summary.txt")):
last_info = "For result details, please run cmd \033[32m' cat {0} '\033[0m\n".format(os.path.join(self.store_dir, "result_summary.txt"))
self.stdio.print(last_info)
else:
self.stdio.warn("No log file is gathered, please check the gather log config")
return ObdiagResult(ObdiagResult.SERVER_ERROR_CODE, error_data="gather log failed,please check the gather log config or check obdiag log")
if self.redact and len(self.redact) > 0:
self.stdio.start_loading("gather redact start")
try:
Expand Down

0 comments on commit 275d0f4

Please sign in to comment.