Skip to content

Commit

Permalink
improved debug log to include used strategy class name
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Jaeckle <thomas.jaeckle@bosch.io>
  • Loading branch information
thjaeckle committed Mar 9, 2022
1 parent 43552ed commit 44460af
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
import javax.annotation.concurrent.Immutable;

import org.eclipse.ditto.base.model.entity.metadata.Metadata;
import org.eclipse.ditto.internal.utils.persistentactors.results.Result;
import org.eclipse.ditto.base.model.signals.commands.Command;
import org.eclipse.ditto.base.model.signals.events.Event;
import org.eclipse.ditto.internal.utils.persistentactors.results.Result;

/**
* Abstract base implementation of {@code CommandStrategy}.
Expand Down Expand Up @@ -61,7 +61,7 @@ public Result<E> apply(final Context<K> context, @Nullable final S entity, final
if (isDefined(context, entity, command)) {
if (context.getLog().isDebugEnabled()) {
context.getLog().withCorrelationId(command)
.debug("Applying command <{}>", command);
.debug("Applying command in <{}>: <{}>", getClass().getSimpleName(), command);
}
@Nullable final Metadata metadata = calculateRelativeMetadata(entity, command).orElse(null);
return doApply(context, entity, nextRevision, command, metadata);
Expand Down

0 comments on commit 44460af

Please sign in to comment.