logging self fix