Skip to content

Commit

Permalink
#30669 add log
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinogiardino committed Nov 22, 2024
1 parent be133fe commit 68942f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ public void registerProcessors() {
if (!testInstantiation(processor)) {
return;
}
Logger.info(this.getClass(), "Registering JobProcessor: " + processor.getName());
registerProcessor(processor);
} catch (Exception e) {
Logger.error(this.getClass(), "Unable to register JobProcessor ", e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;

import static com.dotcms.util.DotPreconditions.checkNotNull;

/**
* REST resource for handling content import operations, including creating and enqueuing content import jobs.
Expand All @@ -31,12 +30,9 @@ public class ContentImportResource {

private final WebResource webResource;
private final ContentImportHelper importHelper;
private final String IMPORT_QUEUE_NAME = "importContentlets";

//TODO move to a common place

private static final String IMPORT_QUEUE_NAME = "importContentlets";

// Constants for commands
private static final String CMD_PREVIEW = "preview";
private static final String CMD_PUBLISH = "publish";

/**
Expand Down Expand Up @@ -113,7 +109,6 @@ public Response importContent(
@BeanParam final ContentImportParams params)
throws DotDataException, JsonProcessingException {

checkNotNull(params, "Form data is required");
// Initialize the WebResource and set required user information
final var initDataObject = new WebResource.InitBuilder(webResource)
.requiredBackendUser(true)
Expand All @@ -122,8 +117,7 @@ public Response importContent(
.rejectWhenNoUser(true)
.init();

Logger.debug(this, ()->String.format("Importing content: %s", params));

Logger.debug(this, ()->String.format(" user %s is importing content: %s", initDataObject.getUser().getUserId(), params));

try {
// Create the import job
Expand Down

0 comments on commit 68942f0

Please sign in to comment.