fixed handling of consent logging