summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-07-23 19:00:33 +0200
committerStephan Bergmann <sbergman@redhat.com>2013-07-23 19:00:52 +0200
commit7f67dd5dfae59a492a88fb2569ee5600add1ecde (patch)
tree6948bb4bc5246845f4a0d0e70fe01496f101b59a /unotools
parent1de20e764ed64beed83bb455b6bdbc9fbebed0a3 (diff)
OSL_FAIL -> SAL_WARN
Change-Id: If0c4dce547184ca48f221793daf33e4592912cb2
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/config/configitem.cxx22
1 files changed, 5 insertions, 17 deletions
diff --git a/unotools/source/config/configitem.cxx b/unotools/source/config/configitem.cxx
index 228fc5d9c402..3403140c7bbb 100644
--- a/unotools/source/config/configitem.cxx
+++ b/unotools/source/config/configitem.cxx
@@ -487,23 +487,11 @@ Sequence< Any > ConfigItem::GetProperties(const Sequence< OUString >& rNames)
}
catch (const Exception& rEx)
{
-#if OSL_DEBUG_LEVEL > 0
- OString sMsg("XHierarchicalNameAccess: ");
- sMsg += OString(rEx.Message.getStr(),
- rEx.Message.getLength(),
- RTL_TEXTENCODING_ASCII_US);
- sMsg += OString("\n/org.openoffice.");
- sMsg += OString(sSubTree.getStr(),
- sSubTree.getLength(),
- RTL_TEXTENCODING_ASCII_US);
- sMsg += OString("/");
- sMsg += OString(pNames[i].getStr(),
- pNames[i].getLength(),
- RTL_TEXTENCODING_ASCII_US);
- OSL_FAIL(sMsg.getStr());
-#else
- (void) rEx; // avoid warning
-#endif
+ SAL_WARN(
+ "unotools.config",
+ "ignoring XHierarchicalNameAccess to /org.openoffice."
+ << sSubTree << "/" << pNames[i] << " Exception: "
+ << rEx.Message);
}
}