logger error management fix