log4j debug guards + maven warning fix