Avoid giving arguments by value for log.
Merge pull request #886 from Arkaran99/master

Avoid giving arguments by value for log