* log log file location only when --log all
This commit is contained in:
parent
aec0ff466e
commit
e238790d4d
|
@ -123,7 +123,9 @@ public class Main {
|
|||
// open file channel and lock
|
||||
FileChannel logChannel = FileChannel.open(logFile.toPath(), StandardOpenOption.CREATE, StandardOpenOption.WRITE, StandardOpenOption.APPEND);
|
||||
if (args.logLock) {
|
||||
System.out.println("Locking " + logFile);
|
||||
if (args.getLogLevel() == Level.ALL) {
|
||||
System.out.println("Locking " + logFile);
|
||||
}
|
||||
logChannel.lock();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue