Skip to content

Commit

Permalink
Fix an erroneous logging format string and pylint pragma (#1630)
Browse files Browse the repository at this point in the history
* Fix an erroenous logging format string and pylint pragma

* Update base_handler.py

* Update base_handler.py

Co-authored-by: Mark Saroufim <marksaroufim@fb.com>
Co-authored-by: Aaqib <maaquib@gmail.com>
  • Loading branch information
3 people authored Aug 16, 2022
1 parent 62b9f22 commit 55eff69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ts/torch_handler/base_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,8 @@ def _infer_with_profiler(self, data):
"on_trace_ready"
] = torch.profiler.tensorboard_trace_handler(result_path)
logger.info(
"Saving chrome trace to : ", result_path
) # pylint: disable=logging-too-many-args
"Saving chrome trace to : %s", result_path
)

with profile(**self.profiler_args) as prof:
with record_function("preprocess"):
Expand Down

0 comments on commit 55eff69

Please sign in to comment.