Remove copies in jit_log.cpp (#67841)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/67841
Reviewed By: anjali411
Differential Revision: D33768433
Pulled By: ZolotukhinM
fbshipit-source-id: 9c081895f7b98eb1ed55fc65250d5ab1f33463b7
(cherry picked from commit a32445da4dc6b69c8ad79282031128b0e637be82)