From 8e303d5b8b7424f8000b251e4c15777a117beca1 Mon Sep 17 00:00:00 2001 From: Penghai Date: Tue, 3 Nov 2020 16:26:51 +1100 Subject: [PATCH] Update the log output from method 'setupDirectories'. --- .../com/tle/tomcat/service/impl/TomcatServiceImpl.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Source/Plugins/Core/com.equella.core/src/com/tle/tomcat/service/impl/TomcatServiceImpl.java b/Source/Plugins/Core/com.equella.core/src/com/tle/tomcat/service/impl/TomcatServiceImpl.java index b5622b737b..1c3e5b502c 100644 --- a/Source/Plugins/Core/com.equella.core/src/com/tle/tomcat/service/impl/TomcatServiceImpl.java +++ b/Source/Plugins/Core/com.equella.core/src/com/tle/tomcat/service/impl/TomcatServiceImpl.java @@ -369,12 +369,14 @@ private void setupDirectories() throws IOException { // tomcat daemon etc. That could be a future optimisation if needed. final File contextDir = new File(tempDir, "context/"); if (!contextDir.mkdir()) { - throw new RuntimeException("Failed to setup context directory: " + tomcatContextPath); + throw new RuntimeException( + "Failed to setup context directory: " + contextDir.getAbsolutePath()); } - LOGGER.info("Using base directory: " + tomcatBasePath); tomcatBasePath = tempDir.getAbsolutePath(); - LOGGER.info("Using context directory: " + tomcatContextPath); tomcatContextPath = contextDir.getAbsolutePath(); + + LOGGER.info("Using base directory: " + tomcatBasePath); + LOGGER.info("Using context directory: " + tomcatContextPath); } }