Replaced fmt output with log output.