log as error instead of debug because debug does not write to log