diff --git a/harvest/batch-import-marc-auth.bat b/harvest/batch-import-marc-auth.bat
index 0fb5af340826a60670fab23cb6822abd29fd6c04..a96595d710dbab4a7be6e18a34adb9a12a026b73 100644
--- a/harvest/batch-import-marc-auth.bat
+++ b/harvest/batch-import-marc-auth.bat
@@ -103,10 +103,10 @@ md %BASEPATH%\processed
 
 rem Process all the files in the target directory:
 for %%a in (%BASEPATH%\*.xml %BASEPATH%\*.mrc) do (
-  rem Capture solrmarc output to log
   if "%LOGGING%"=="0" (
     call %VUFIND_HOME%\import-marc-auth.bat %%a %2
   )
+  rem Capture solrmarc output to log
   if "%LOGGING%"=="1" (
     call %VUFIND_HOME%\import-marc-auth.bat %%a %2 2> %BASEPATH%\log\%%~nxa.log
   )