log levels
This commit is contained in:
parent
60629198bd
commit
5eb49d2b33
|
@ -88,7 +88,7 @@ public class ZeppelinClient {
|
||||||
.findFirst();
|
.findFirst();
|
||||||
|
|
||||||
if (oldNoteId.isPresent()) {
|
if (oldNoteId.isPresent()) {
|
||||||
log.info("Returning existing note: " + oldNoteId.get());
|
log.debug("Returning existing note: " + oldNoteId.get());
|
||||||
return zeppelinBaseUrl + "/#/notebook/" + oldNoteId.get();
|
return zeppelinBaseUrl + "/#/notebook/" + oldNoteId.get();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -163,13 +163,13 @@ public class ZeppelinClient {
|
||||||
|
|
||||||
final String firstPart = StringUtils.substringBeforeLast(n.get("name"), "-");
|
final String firstPart = StringUtils.substringBeforeLast(n.get("name"), "-");
|
||||||
if (!map.containsKey(firstPart)) {
|
if (!map.containsKey(firstPart)) {
|
||||||
log.info("Evaluating note " + n.get("name") + " for deletion: CONFIRMED");
|
log.debug("Evaluating note " + n.get("name") + " for deletion: CONFIRMED");
|
||||||
map.put(firstPart, 1);
|
map.put(firstPart, 1);
|
||||||
} else if (map.get(firstPart) < MAX_NUMBER_OF_MD_NOTES) {
|
} else if (map.get(firstPart) < MAX_NUMBER_OF_MD_NOTES) {
|
||||||
log.info("Evaluating note " + n.get("name") + " for deletion: CONFIRMED");
|
log.debug("Evaluating note " + n.get("name") + " for deletion: CONFIRMED");
|
||||||
map.put(firstPart, map.get(firstPart) + 1);
|
map.put(firstPart, map.get(firstPart) + 1);
|
||||||
} else {
|
} else {
|
||||||
log.info("Evaluating note " + n.get("name") + " for deletion: TO_DELETE");
|
log.debug("Evaluating note " + n.get("name") + " for deletion: TO_DELETE");
|
||||||
callApi(HttpMethod.DELETE, "notebook/" + n.get("id"), SimpleResponse.class, null);
|
callApi(HttpMethod.DELETE, "notebook/" + n.get("id"), SimpleResponse.class, null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -209,19 +209,19 @@ public class ZeppelinClient {
|
||||||
|
|
||||||
switch (method) {
|
switch (method) {
|
||||||
case GET:
|
case GET:
|
||||||
log.info("Performing GET: " + url);
|
log.debug("Performing GET: " + url);
|
||||||
res = restTemplate.getForEntity(url, resClazz);
|
res = restTemplate.getForEntity(url, resClazz);
|
||||||
break;
|
break;
|
||||||
case POST:
|
case POST:
|
||||||
log.info("Performing POST: " + url);
|
log.debug("Performing POST: " + url);
|
||||||
res = restTemplate.postForEntity(url, objRequest, resClazz);
|
res = restTemplate.postForEntity(url, objRequest, resClazz);
|
||||||
break;
|
break;
|
||||||
case PUT:
|
case PUT:
|
||||||
log.info("Performing PUT: " + url);
|
log.debug("Performing PUT: " + url);
|
||||||
restTemplate.put(url, objRequest);
|
restTemplate.put(url, objRequest);
|
||||||
break;
|
break;
|
||||||
case DELETE:
|
case DELETE:
|
||||||
log.info("Performing DELETE: " + url);
|
log.debug("Performing DELETE: " + url);
|
||||||
restTemplate.delete(url);
|
restTemplate.delete(url);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue