Skip to content

Commit

Permalink
fix toString() of Whoami + debug loggin in AbstractHttpRequestActor
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 Oct 18, 2021
1 parent e67d7d0 commit 1d4498b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ private DittoHeaders getExternalHeaders(final DittoHeaders dittoHeaders) {
}

private void handleWhoami(final Whoami command) {
logger.withCorrelationId(command).debug("Got Whoami.", command);
logger.withCorrelationId(command).debug("Got Whoami: <{}>", command);
final ActorContext context = getContext();
final WhoamiResponse response = createWhoamiResponse(command);
context.become(getResponseAwaitingBehavior(getTimeoutExceptionSupplier(command)));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
import javax.annotation.Nonnull;
import javax.annotation.concurrent.Immutable;

import org.eclipse.ditto.json.JsonField;
import org.eclipse.ditto.json.JsonObject;
import org.eclipse.ditto.json.JsonObjectBuilder;
import org.eclipse.ditto.base.api.common.CommonCommand;
import org.eclipse.ditto.base.model.headers.DittoHeaders;
import org.eclipse.ditto.base.model.json.JsonParsableCommand;
import org.eclipse.ditto.base.model.json.JsonSchemaVersion;
import org.eclipse.ditto.base.api.common.CommonCommand;
import org.eclipse.ditto.json.JsonField;
import org.eclipse.ditto.json.JsonObject;
import org.eclipse.ditto.json.JsonObjectBuilder;

/**
* Command to retrieve information about the current user.
Expand Down Expand Up @@ -101,7 +101,7 @@ public int hashCode() {

@Override
public String toString() {
return "Whoami{} " + super.toString();
return getClass().getSimpleName() + "[" + super.toString() + "]";
}

@Override
Expand Down

0 comments on commit 1d4498b

Please sign in to comment.