Fixed build

This commit is contained in:
Marcin Grzejszczak
2016-08-09 14:28:57 +02:00
parent 10293f4ad9
commit 01cfa8dcf9
13 changed files with 188 additions and 10 deletions

View File

@@ -78,15 +78,15 @@ class ContentUtils {
}
// else Brute force :(
try {
log.debug("No content type provided so trying to parse as JSON")
log.trace("No content type provided so trying to parse as JSON")
return extractValueForJSON(bodyAsValue, valueProvider)
} catch(JsonException e) {
// Not a JSON format
log.debug("Failed to parse as JSON - trying to parse as XML", e)
log.trace("Failed to parse as JSON - trying to parse as XML", e)
try {
return extractValueForXML(bodyAsValue, valueProvider)
} catch (Exception exception) {
log.debug("No content type provided and failed to parse as XML - returning the value back to the user", exception)
log.trace("No content type provided and failed to parse as XML - returning the value back to the user", exception)
return extractValueForGString(bodyAsValue, valueProvider)
}
}