Skip to content

Commit

Permalink
[build] bumping log4j2 to 2.12.2 for sanity + pinning mvn-deploy-plug…
Browse files Browse the repository at this point in the history
…in (#380)
  • Loading branch information
truthbk committed Dec 14, 2021
1 parent aced8df commit 99c40ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 4 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,18 @@
<java-dogstatsd-client.version>2.10.5</java-dogstatsd-client.version>
<jcommander.version>1.35</jcommander.version>
<!-- log4j 2.13+ drops support for Java 7, so stick to 2.12 -->
<log4j.version>2.12.1</log4j.version>
<log4j.version>2.12.2</log4j.version>
<slf4j.version>1.7.26</slf4j.version>
<jackson.version>2.12.3</jackson.version>
<snakeyaml.version>1.26</snakeyaml.version>
<maven-deploy-plugin.version>2.8.2</maven-deploy-plugin.version>
<!-- Note: using project checkstyle with AOSP style
find the default google java checkstyle config here -
<checkstyle.config.location>google_checks.xml</checkstyle.config.location>
-->
<checkstyle.config.location>style.xml</checkstyle.config.location>


<junit.version>4.13.1</junit.version>
<mockito.version>2.2.27</mockito.version>

Expand Down Expand Up @@ -330,6 +332,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>${maven-deploy-plugin.version}</version>
<configuration>
<skip>true</skip>
</configuration>
Expand Down
5 changes: 0 additions & 5 deletions src/main/java/org/datadog/jmxfetch/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@ public class App {
private static final String COLLECTION_POOL_NAME = "jmxfetch-collectionPool";
private static final String RECOVERY_POOL_NAME = "jmxfetch-recoveryPool";

private static final String LOG4J2_FMT_MSG_NOLOOKUPS = "log4j2.formatMsgNoLookups";

private static final ByteArraySearcher CONFIG_TERM_SEARCHER
= new ByteArraySearcher(App.AD_CONFIG_TERM.getBytes());
private static final ByteArraySearcher LEGACY_CONFIG_TERM_SEARCHER
Expand Down Expand Up @@ -145,9 +143,6 @@ public static void main(String[] args) {
// Running these commands here because they are logging specific,
// not needed in dd-java-agent, which calls run directly.

// Nasty but no easy programmatic way to enable behavior otherwise
System.setProperty(LOG4J2_FMT_MSG_NOLOOKUPS, "True");

// Set up the logger to add file handler
CustomLogger.setup(Level.toLevel(config.getLogLevel()),
config.getLogLocation(),
Expand Down

0 comments on commit 99c40ed

Please sign in to comment.