Skip to content

Commit

Permalink
Logging tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
bbende committed Jul 3, 2024
1 parent d29f877 commit a429cff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public NarSummariesEntity listNarSummaries() {
.addPathSegment(NAR_MANAGER_PATH)
.addPathSegment(NARS_PATH)
.build();
LOGGER.info("Requesting NAR summaries from {}", requestUri);
LOGGER.debug("Requesting NAR summaries from {}", requestUri);

final HttpRequestBodySpec requestBodySpec = webClientService.get()
.uri(requestUri)
Expand All @@ -104,7 +104,7 @@ public InputStream downloadNar(final String identifier) {
.addPathSegment(identifier)
.addPathSegment(NAR_CONTENT_PATH)
.build();
LOGGER.info("Downloading NAR [{}] from {}", identifier, requestUri);
LOGGER.debug("Downloading NAR [{}] from {}", identifier, requestUri);

try {
final HttpResponseEntity response = webClientService.get()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ private NarSummariesEntity listNarSummaries(final NarRestApiClient narRestApiCli
try {
return narRestApiClient.listNarSummaries();
} catch (final NarRestApiRetryableException e) {
logger.warn("[{}]: retrying", e.getMessage());
logger.warn("{}: retrying", e.getMessage());
return null;
}
}
Expand Down Expand Up @@ -433,11 +433,11 @@ private synchronized NarNode installNar(final NarInstallRequest installRequest,

final NarInstallTask installTask = createInstallTask(narNode);
if (async) {
logger.info("Submitting install task for NAR with id [{}] and coordinate [{}]", identifier, coordinate);
logger.debug("Submitting install task for NAR with id [{}] and coordinate [{}]", identifier, coordinate);
final Future<?> installTaskFuture = installExecutorService.submit(installTask);
installFuturesById.put(identifier, installTaskFuture);
} else {
logger.info("Synchronously installing NAR with id [{}] and coordinate [{}]", identifier, coordinate);
logger.debug("Synchronously installing NAR with id [{}] and coordinate [{}]", identifier, coordinate);
installTask.run();
}
return narNode;
Expand Down

0 comments on commit a429cff

Please sign in to comment.