From 480648f155cc9af72949051bea20ca9708cb9bef 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); } }