Skip to content

Commit

Permalink
Fix log indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
archana-ramalingam committed Nov 21, 2024
1 parent 814b364 commit 9e965a2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sharktank/sharktank/utils/export_artifacts.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,13 +180,13 @@ def export_to_mlir(
cwd = self.sharktank_dir
cmd = subprocess.list2cmdline(export_args)

logger.info(f"Exporting mlir:\n" f"cd {cwd} && {cmd}")
logger.info(f" Exporting mlir:\n" f"cd {cwd} && {cmd}")

proc = subprocess.run(cmd, shell=True, capture_output=True, cwd=cwd, text=True)
if proc.returncode != 0:
raise ExportMlirException(proc, cwd)
else:
logger.info(f"Exported to mlir successfully:\n" f"{proc.stdout}")
logger.info(f" Exported to mlir successfully:\n" f"{proc.stdout}")

return proc.returncode

Expand Down Expand Up @@ -223,7 +223,7 @@ def compile_to_vmfb(
compile_args += args
cmd = subprocess.list2cmdline(compile_args)

logging.getLogger().info(f"Launching compile command:\n" f"cd {cwd} && {cmd}")
logger.info(f" Launching compile command:\n" f"cd {cwd} && {cmd}")
proc = subprocess.run(cmd, shell=True, capture_output=True, cwd=cwd)
return_code = proc.returncode
if return_code != 0:
Expand Down Expand Up @@ -277,7 +277,7 @@ def iree_benchmark_vmfb(
benchmark_args += devices
benchmark_args += args
cmd = subprocess.list2cmdline(benchmark_args)
logging.getLogger().info(f"Launching run command:\n" f"cd {cwd} && {cmd}")
logger.info(f" Launching run command:\n" f"cd {cwd} && {cmd}")
proc = subprocess.run(cmd, shell=True, stdout=sys.stdout, cwd=cwd)
return_code = proc.returncode
if return_code != 0:
Expand Down

0 comments on commit 9e965a2

Please sign in to comment.