fix logging levels handling