if(log.isDebugEnabled()) { log.error("Print job failed: " + e);
if(log.isErrorEnabled()) { log.error("Print job failed: ", e);
    public void printPages() {	if (job == null) return;	try {	    job.print();	} catch (PrinterException e) {          if(log.isDebugEnabled()) {	    log.error("Print job failed: " + e);          }	}    }