Improved failoverlog.go script.

Change-Id: I945199cd3776823825eee268098f755988b06fca