Adds logging on import errors.