Skip to content

Commit d291e44

Browse files
authored
.gitignore, pom updated & bugfix in main if arg is null (#17)
1 parent 8a2363e commit d291e44

File tree

3 files changed

+18
-5
lines changed

3 files changed

+18
-5
lines changed

.gitignore

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
1-
/target/
1+
# Eclipse
22
.classpath
3+
.project
34
.settings/
45

6+
# Intellij
7+
.idea/
8+
*.iml
9+
*.iws
10+
11+
# Mac
12+
.DS_Store
13+
14+
# Maven
15+
log/
16+
target/
17+
18+
# Others
19+
derby.log
20+

pom.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,6 @@
191191
<plugin>
192192
<groupId>org.springframework.boot</groupId>
193193
<artifactId>spring-boot-maven-plugin</artifactId>
194-
<configuration>
195-
<classifier>exec</classifier>
196-
</configuration>
197194
</plugin>
198195
<!-- required for adding generated sources -->
199196
<plugin>

src/main/java/com/ericsson/ei/App.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public static void main(String[] args) {
1919
List<String> logLevels = new ArrayList<>();
2020
Collections.addAll(logLevels, "ALL", "DEBUG", "ERROR", "FATAL", "INFO", "TRACE", "WARN");
2121

22-
if(logLevels.contains(args[0])) {
22+
if(args != null && args.length > 0 && logLevels.contains(args[0])) {
2323
System.setProperty("logging.level.root", args[0]);
2424
System.setProperty("logging.level.org.springframework.web", args[0]);
2525
System.setProperty("logging.level.com.ericsson.ei", args[0]);

0 commit comments

Comments
 (0)