Skip to content

Commit

Permalink
Optimize the error log messages for the gather log function when the …
Browse files Browse the repository at this point in the history
…home_path configuration is incorrect (#569)

* observer.backup 和 backup_clean 收集场景支持分租户

* observer.backup 和 backup_clean 收集场景支持分租户

* observer.backup 和 backup_clean 收集场景支持分租户

* fix #563
  • Loading branch information
Teingi authored Nov 21, 2024
1 parent 447b7da commit 1db71c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handler/gather/gather_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ def __handle_log_list(self, ssh, node, resp):
resp["error"] = "Too many files {0} > {1}".format(len(log_list), self.file_number_limit)
return log_list, resp
elif len(log_list) <= 0:
self.stdio.warn('{0} The number of log files is {1}, The time range for file gather from {2} to {3}, and no eligible files were found.' " Please adjust the query time limit.".format(ip, len(log_list), self.from_time_str, self.to_time_str))
self.stdio.warn('[{0}]: No log files that meet the conditions for the time period from {1} to {2} were found at the home_path: {3}'.format(ip, self.from_time_str, self.to_time_str, node.get("home_path")))
resp["skip"] = (True,)
resp["error"] = "No files found"
return log_list, resp
Expand Down

0 comments on commit 1db71c8

Please sign in to comment.