* log log file location only when --log all

This commit is contained in:
Reinhard Pointner 2015-05-04 18:13:33 +00:00
parent aec0ff466e
commit e238790d4d
1 changed files with 3 additions and 1 deletions

View File

@ -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) {
if (args.getLogLevel() == Level.ALL) {
System.out.println("Locking " + logFile);
}
logChannel.lock();
}