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