Skip to content

Commit

Permalink
Fix invalid logging pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
geoand authored and holly-cummins committed Feb 8, 2024
1 parent 60678d5 commit 9c3eade
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public Object receiveRequest(
final TagExtractor tagExtractor) {
if (delegate == null) {
log.warnv("VertxTracer delegate not set. Will not submit this trace. " +
"SpanKind: {}; Request: {}; Operation:{}.",
"SpanKind: {0}; Request: {1}; Operation:{2}.",
kind,
request == null ? "null" : request.toString(),
operation);
Expand All @@ -70,7 +70,7 @@ public void sendResponse(
final TagExtractor tagExtractor) {
if (delegate == null) {
log.warnv("VertxTracer delegate not set. Will not submit this trace. " +
"Response: {}; Failure: {}.",
"Response: {0}; Failure: {1}.",
response == null ? "null" : response.toString(),
failure == null ? "null" : failure.getMessage());
return;
Expand All @@ -89,7 +89,7 @@ public Object sendRequest(
final TagExtractor tagExtractor) {
if (delegate == null) {
log.warnv("VertxTracer delegate not set. Will not submit this trace. " +
"SpanKind: {}; Request: {}; Operation:{}.",
"SpanKind: {0}; Request: {1}; Operation:{2}.",
kind,
request == null ? "null" : request.toString(),
operation);
Expand All @@ -107,7 +107,7 @@ public void receiveResponse(
final TagExtractor tagExtractor) {
if (delegate == null) {
log.warnv("VertxTracer delegate not set. Will not submit this trace. " +
"Response: {}; Failure: {}.",
"Response: {0}; Failure: {1}.",
response == null ? "null" : response.toString(),
failure == null ? "null" : failure.getMessage());
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ private void addHeaderParam(MethodInfo declaringMethod, MethodCreator fillHeader
String[] values = annotation.value().asStringArray();

if (values.length == 0) {
log.warnv("Ignoring ClientHeaderParam that specifies an empty array of header values for header {} on {}",
log.warnv("Ignoring ClientHeaderParam that specifies an empty array of header values for header {0} on {1}",
annotation.value("name").asString(), annotation.target());
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@ private ScopeInfo computeDefaultScope(Capabilities capabilities, Config config,

BuiltinScope globalDefaultScope = BuiltinScope.from(DotName.createSimple(mpClientConfig.scope));
if (globalDefaultScope == null) {
log.warnv("Unable to map the global rest client scope: '{}' to a scope. Using @ApplicationScoped",
log.warnv("Unable to map the global rest client scope: '{0}' to a scope. Using @ApplicationScoped",
mpClientConfig.scope);
globalDefaultScope = BuiltinScope.APPLICATION;
}
Expand Down

0 comments on commit 9c3eade

Please sign in to comment.