avoid multiple logs of same error