Skip to content

Commit 6ac22f4

Browse files
authored
Merge pull request #33 from securenative/dev
Fix default log level
2 parents 676c0f4 + 00376d2 commit 6ac22f4

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<groupId>com.securenative.java</groupId>
77
<artifactId>securenative-java</artifactId>
88
<packaging>jar</packaging>
9-
<version>0.5.1</version>
9+
<version>0.5.2</version>
1010
<url>https://github.com/securenative/securenative-java</url>
1111

1212
<name>${project.groupId}:${project.artifactId}:${project.version}</name>

src/main/java/com/securenative/Logger.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@ private Logger(Class<?> clazz) {
4545
static void initLogger(String logLevel) {
4646
try {
4747
_logLevel = LogLevel.valueOf(logLevel);
48-
} catch (IllegalArgumentException ex) {
49-
_logLevel = LogLevel.ERROR;
50-
}
48+
} catch (IllegalArgumentException ignored) {}
5149
}
5250

5351
public static Logger getLogger(Class<?> clazz) {

src/test/java/com/securenative/http/SecureNativeHTTPClientTest.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package com.securenative.http;
22

33
import com.securenative.config.ConfigurationManager;
4-
import com.securenative.exceptions.SecureNativeInvalidUriException;
54
import org.junit.jupiter.api.DisplayName;
65
import org.junit.jupiter.api.Test;
76
import org.junit.jupiter.api.Timeout;
@@ -15,12 +14,9 @@ public class SecureNativeHTTPClientTest extends HTTPServerMock {
1514
@Test
1615
@Timeout(value = 1000, unit = TimeUnit.MILLISECONDS)
1716
@DisplayName("Should make simple http post call")
18-
public void shouldMakeSimplePostCallTest() throws IOException, SecureNativeInvalidUriException {
19-
configBuilder = ConfigurationManager.configBuilder()
20-
.withApiKey("YOUR_API_KEY");
21-
17+
public void shouldMakeSimplePostCallTest() throws IOException {
18+
configBuilder = ConfigurationManager.configBuilder().withApiKey("YOUR_API_KEY");
2219
client = sandbox().mock(200, "SOME_BODY");
23-
2420
String payload = "{\"event\":\"SOME_EVENT_NAME\"}";
2521

2622
HttpResponse response = client.post("track", payload);

0 commit comments

Comments
 (0)