log of error produces stack instead of logging object