Skip to content

Commit

Permalink
Allow re-use of logging mapping in other extension handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
mcculls committed May 29, 2024
1 parent 4ac76f8 commit 86c104f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class ExtensionHandler {
new Remapper() {
@Override
public String map(String internalName) {
return SHADE_LOGGING.apply(internalName);
return MAP_LOGGING.apply(internalName);
}
});

Expand Down Expand Up @@ -113,7 +113,7 @@ private byte[] mapBytecode() throws IOException {
}

/** Maps logging references in the extension to use the tracer's embedded logger. */
protected static final Function<String, String> SHADE_LOGGING =
public static final Function<String, String> MAP_LOGGING =
new Function<String, String>() {
// substring stops string literal from being changed by shadow plugin
private final String ORG_SLF4J = "_org/slf4j/".substring(1);
Expand Down

0 comments on commit 86c104f

Please sign in to comment.