Skip to content

Commit

Permalink
Merge pull request #3429 from mapfish/improve-logging
Browse files Browse the repository at this point in the history
Log when synchronous or asynchronous print reports are requested
  • Loading branch information
sebr72 authored Sep 20, 2024
2 parents 8dad522 + 68a9200 commit 36ba7c5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ public final void createReportAndGet(
TimeUnit.SECONDS.toMillis(this.maxCreateAndGetWaitTimeInSeconds);
long startWaitTime = System.currentTimeMillis();
while (!isDone && System.currentTimeMillis() - startWaitTime < maxWaitTimeInMillis) {
Thread.sleep(TimeUnit.SECONDS.toMillis(1));
TimeUnit.SECONDS.sleep(1);
isDone = loadReport(ref, createReportResponse, handler);
}
}
Expand Down Expand Up @@ -1032,7 +1032,7 @@ private String createAndSubmitPrintJob(
UUID.randomUUID() + "@" + this.servletInfo.getServletId(), httpServletRequest);
MDC.put(Processor.MDC_APPLICATION_ID_KEY, appId);
MDC.put(Processor.MDC_JOB_ID_KEY, ref);
LOGGER.debug("Created Ref:{} for {}", ref, specJson);
LOGGER.debug("{} created Ref:{} for {}", httpServletRequest.getRequestURI(), ref, specJson);

specJson.getInternalObj().remove(JSON_OUTPUT_FORMAT);
specJson.getInternalObj().put(JSON_OUTPUT_FORMAT, format);
Expand Down

0 comments on commit 36ba7c5

Please sign in to comment.