log error

pertains to #4