Project

General

Profile

« Previous | Next » 

Revision 29828

OAI interceptor now logs in debug if everything's ok

View differences:

modules/cnr-data-information-oai-publisher/trunk/src/main/java/eu/dnetlib/data/information/oai/publisher/core/CoreInterceptor.java
17 17
	@Override
18 18
	protected void writeToLog(final Log logger, final String message, final Throwable ex) {
19 19
		if (ex != null) {
20
			logger.info(message, ex);
20
			logger.error(message, ex);
21 21
		} else {
22
			logger.info(message);
22
			logger.debug(message);
23 23
		}
24 24
	}
25 25

  
26
	@Override
26 27
	protected boolean isInterceptorEnabled(final MethodInvocation invocation, final Log logger) {
27 28
		return true;
28 29
	}

Also available in: Unified diff