log works now for every incoming error