Avoid giving arguments by value for log

Since this guy hasn't made a PR and giving by value is often slower, it might be worth pulling.