Fixing incorrect log4j logging