From ea511c982a498ef42cd10a26f4807ab4394058c2 Mon Sep 17 00:00:00 2001 From: Janik Zikovsky <zikovskyjl@ornl.gov> Date: Mon, 7 Mar 2011 17:20:40 +0000 Subject: [PATCH] Refs #2584: Close logging file should help test on windows? --- Code/Mantid/Framework/Kernel/src/ConfigService.cpp | 2 ++ Code/Mantid/Framework/Kernel/src/System.cpp | 1 + 2 files changed, 3 insertions(+) diff --git a/Code/Mantid/Framework/Kernel/src/ConfigService.cpp b/Code/Mantid/Framework/Kernel/src/ConfigService.cpp index 331a69cee57..e1679388975 100644 --- a/Code/Mantid/Framework/Kernel/src/ConfigService.cpp +++ b/Code/Mantid/Framework/Kernel/src/ConfigService.cpp @@ -323,6 +323,8 @@ void ConfigServiceImpl::configureLogging() // Clear the path; this will make it use the default m_logFilePath = ""; } + else + fclose(fp); } catch (std::exception &) { diff --git a/Code/Mantid/Framework/Kernel/src/System.cpp b/Code/Mantid/Framework/Kernel/src/System.cpp index 35872a2a62b..78189c72219 100644 --- a/Code/Mantid/Framework/Kernel/src/System.cpp +++ b/Code/Mantid/Framework/Kernel/src/System.cpp @@ -60,6 +60,7 @@ Mantid::Kernel::RegistrationHelper::RegistrationHelper(int) */ std::string Mantid::Kernel::getDirectoryOfExecutable() { + //std::cout << "getDirectoryOfExecutable is " << Poco::Path(getPathToExecutable()).parent().toString() << std::endl return Poco::Path(getPathToExecutable()).parent().toString(); } -- GitLab