Logger usage fix