From 4dfc1c652f95ead56501c48e52424722b8c8dfe9 Mon Sep 17 00:00:00 2001 From: cantor Date: Mon, 17 Jan 2005 21:37:04 +0000 Subject: [PATCH] Added logging of filename during errors. git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@1306 cb58f699-b61c-0410-a6fe-9272a202ed29 --- shib/ReloadableXMLFile.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/shib/ReloadableXMLFile.cpp b/shib/ReloadableXMLFile.cpp index dc7314d..5b7035b 100644 --- a/shib/ReloadableXMLFile.cpp +++ b/shib/ReloadableXMLFile.cpp @@ -89,7 +89,7 @@ ReloadableXMLFileImpl::ReloadableXMLFileImpl(const char* pathname) : m_doc(NULL) catch (XMLException& e) { auto_ptr_char msg(e.getMessage()); - log.errorStream() << "Xerces error while opening configuration file: " << msg.get() << CategoryStream::ENDLINE; + log.errorStream() << "Xerces error while opening configuration file (" << pathname << "): " << msg.get() << CategoryStream::ENDLINE; if (m_doc) { m_doc->release(); m_doc=NULL; @@ -98,7 +98,7 @@ ReloadableXMLFileImpl::ReloadableXMLFileImpl(const char* pathname) : m_doc(NULL) } catch (SAMLException& e) { - log.errorStream() << "XML error while parsing configuration file: " << e.what() << CategoryStream::ENDLINE; + log.errorStream() << "XML error while parsing configuration file (" << pathname << "): " << e.what() << CategoryStream::ENDLINE; if (m_doc) { m_doc->release(); m_doc=NULL; @@ -107,7 +107,7 @@ ReloadableXMLFileImpl::ReloadableXMLFileImpl(const char* pathname) : m_doc(NULL) } catch (...) { - log.error("Unexpected error while parsing configuration file"); + log.errorStream() << "Unexpected error while parsing configuration file (" << pathname << ")" << CategoryStream::ENDLINE; if (m_doc) { m_doc->release(); m_doc=NULL; -- 2.1.4