Project

General

Profile

« Previous | Next » 

Revision 50864

Log only exception message when it is an OAI-related exception

View differences:

modules/cnr-data-information-oai-publisher-common/trunk/src/main/java/eu/dnetlib/data/information/oai/publisher/OAIController.java
113 113
				return oaiError(OAIError.badVerb, map);
114 114
			}
115 115
		} catch (final CannotDisseminateFormatException e) {
116
			log.debug("ERROR", e);
116
			log.debug("Exception: "+e.getMessage());
117 117
			return oaiError(OAIError.cannotDisseminateFormat, theVerb, map);
118 118
		} catch (final NoRecordsMatchException e) {
119
			log.debug("ERROR", e);
119
			log.debug("Exception: "+e.getMessage());
120 120
			return oaiError(OAIError.noRecordsMatch, theVerb, map);
121 121
		} catch (final BadResumptionTokenException e) {
122
			log.debug("ERROR", e);
122
			log.debug("Exception: "+e.getMessage());
123 123
			return oaiError(OAIError.badResumptionToken, theVerb, map);
124 124
		} catch (final Exception e) {
125 125
			log.error("ERROR", e);

Also available in: Unified diff