diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2020-02-24 22:08:04 +0100 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-02-27 07:32:53 +0100 |
commit | b11293297e581b87fba7e995d350ba59ecb820f2 (patch) | |
tree | fcc57953397596b49dbf1d4229a26640c7276630 /connectivity/source/drivers/postgresql/pq_xindexcolumns.cxx | |
parent | 64cfe0c8ae0d69981f381255acbabfe38ac61fb5 (diff) |
Postgresql: replace specific log mechanism by generic SAL_INFO/SAL_WARN
Change-Id: I601ff29cede5ef5f594fd00c8bea810080cb8388
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89383
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'connectivity/source/drivers/postgresql/pq_xindexcolumns.cxx')
-rw-r--r-- | connectivity/source/drivers/postgresql/pq_xindexcolumns.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/connectivity/source/drivers/postgresql/pq_xindexcolumns.cxx b/connectivity/source/drivers/postgresql/pq_xindexcolumns.cxx index 40b410920fc8..12acb6f321d6 100644 --- a/connectivity/source/drivers/postgresql/pq_xindexcolumns.cxx +++ b/connectivity/source/drivers/postgresql/pq_xindexcolumns.cxx @@ -34,6 +34,7 @@ * ************************************************************************/ +#include <sal/log.hxx> #include <vector> #include <com/sun/star/lang/WrappedTargetRuntimeException.hpp> @@ -98,12 +99,7 @@ void IndexColumns::refresh() { try { - if (isLog(m_pSettings, LogLevel::Info)) - { - OString buf = "sdbcx.IndexColumns get refreshed for index " + - OUStringToOString( m_indexName, ConnectionSettings::encoding ); - log( m_pSettings, LogLevel::Info, buf.getStr() ); - } + SAL_INFO("connectivity.postgresql", "sdbcx.IndexColumns get refreshed for index " << m_indexName); osl::MutexGuard guard( m_xMutex->GetMutex() ); |