Skip to content

Commit 3aa77ac

Browse files
committed
One-line loglevel decision
1 parent dd107bd commit 3aa77ac

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

jabgui/src/main/java/org/jabref/Launcher.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,7 @@ public static void initLogging(String[] args) {
109109

110110
// We must configure logging as soon as possible, which is why we cannot wait for the usual
111111
// argument parsing workflow to parse logging options e.g. --debug
112-
Level logLevel =
113-
Arrays.stream(args).anyMatch("--debug"::equalsIgnoreCase)
114-
?
115-
Level.DEBUG
116-
:
117-
Level.INFO;
112+
Level logLevel = Arrays.stream(args).anyMatch("--debug"::equalsIgnoreCase) ? Level.DEBUG : Level.INFO;
118113

119114
// addLogToDisk
120115
// We cannot use `Injector.instantiateModelOrService(BuildInfo.class).version` here, because this initializes logging

0 commit comments

Comments
 (0)