Skip to content

Commit

Permalink
update12
Browse files Browse the repository at this point in the history
  • Loading branch information
jingyd66 committed Sep 6, 2024
1 parent 067a8a6 commit 528d9e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion handler/analyzer/analyze_queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,8 @@ def __pharse_log_file(self, ssh_client, node, log_name, gather_path, local_store
home_path = node.get("home_path")
log_path = os.path.join(home_path, "log")
local_store_path = "{0}/{1}".format(local_store_dir, log_name)
grep_cmd = "grep -e 'dump tenant info(tenant={id:{tenant_id},' {log_dir}/{log_name} >> {gather_path}/{log_name} ".format(tenant_id=self.tenant_id, gather_path=gather_path, log_name=log_name, log_dir=log_path)
self.stdio.verbose("local_store_path {0}".format(local_store_path))
grep_cmd = "grep -e '''dump tenant info(tenant={id:{tenant_id},''' {log_name} >> {local_store_path} ".format(tenant_id=self.tenant_id, log_name=log_name, local_store_path=local_store_path)
self.stdio.verbose("grep files, run cmd = [{0}]".format(grep_cmd))
ssh_client.exec_cmd(grep_cmd)
log_full_path = "{gather_path}/{log_name}".format(log_name=log_name, gather_path=gather_path)
Expand Down

0 comments on commit 528d9e5

Please sign in to comment.