Fix log formatting