fix error if logger attribute omitted