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_xkeys.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_xkeys.cxx')
-rw-r--r-- | connectivity/source/drivers/postgresql/pq_xkeys.cxx | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/connectivity/source/drivers/postgresql/pq_xkeys.cxx b/connectivity/source/drivers/postgresql/pq_xkeys.cxx index 892252a5252f..2297b557e6af 100644 --- a/connectivity/source/drivers/postgresql/pq_xkeys.cxx +++ b/connectivity/source/drivers/postgresql/pq_xkeys.cxx @@ -34,6 +34,7 @@ * ************************************************************************/ +#include <sal/log.hxx> #include <rtl/ustrbuf.hxx> #include <com/sun/star/lang/IndexOutOfBoundsException.hpp> #include <com/sun/star/lang/WrappedTargetRuntimeException.hpp> @@ -110,13 +111,7 @@ void Keys::refresh() { try { - if (isLog(m_pSettings, LogLevel::Info)) - { - OString buf( "sdbcx.Keys get refreshed for table " + - OUStringToOString( m_schemaName, ConnectionSettings::encoding ) + - "." + OUStringToOString( m_tableName, ConnectionSettings::encoding )); - log( m_pSettings, LogLevel::Info, buf.getStr() ); - } + SAL_INFO("connectivity.postgresql", "sdbcx.Keys get refreshed for table " << m_schemaName << "." << m_tableName); osl::MutexGuard guard( m_xMutex->GetMutex() ); Statics & st = getStatics(); |