From 665e0a8d16a5672631ba15a3ed663c214486c42e Mon Sep 17 00:00:00 2001 From: Melissa Linkert Date: Tue, 9 Jan 2024 12:41:37 -0600 Subject: [PATCH] Move logging configuration to beginning of call() method --- .../glencoesoftware/pyramid/PyramidFromDirectoryWriter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/glencoesoftware/pyramid/PyramidFromDirectoryWriter.java b/src/main/java/com/glencoesoftware/pyramid/PyramidFromDirectoryWriter.java index e44d7b4..42eb489 100755 --- a/src/main/java/com/glencoesoftware/pyramid/PyramidFromDirectoryWriter.java +++ b/src/main/java/com/glencoesoftware/pyramid/PyramidFromDirectoryWriter.java @@ -486,6 +486,8 @@ public IProgressListener getProgressListener() { @Override public Void call() throws Exception { + setupLogger(); + if (printVersion) { printVersion(); return null; @@ -504,8 +506,6 @@ public Void call() throws Exception { // Resolve symlinks inputDirectory = inputDirectory.toRealPath(); - setupLogger(); - // we could support this case later, just keeping it simple for now if (splitBySeries && legacy) { throw new IllegalArgumentException("--split not supported with --legacy");