log: fix custom output bug

R=r
CC=golang-dev
https://golang.org/cl/2525041
2 files changed