]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[master] LOG_ERROR -> DB_LOG_ERROR
authorFrancis Dupont <fdupont@isc.org>
Sat, 10 Mar 2018 16:52:28 +0000 (17:52 +0100)
committerFrancis Dupont <fdupont@isc.org>
Sat, 10 Mar 2018 16:52:28 +0000 (17:52 +0100)
src/lib/dhcpsrv/pgsql_connection.cc

index a05f2214f09789fcd606dc9cccd737cfdd6d9cb8..14a54d3a1bb1dd60c245bacb5d557dc7e8e9453f 100644 (file)
@@ -115,8 +115,8 @@ PgSqlConnection::~PgSqlConnection() {
             PgSqlResult r(PQexec(conn_, "DEALLOCATE all"));
             if(PQresultStatus(r) != PGRES_COMMAND_OK) {
                 // Highly unlikely but we'll log it and go on.
-                LOG_ERROR(dhcpsrv_logger, DHCPSRV_PGSQL_DEALLOC_ERROR)
-                          .arg(PQerrorMessage(conn_));
+                DB_LOG_ERROR(PGSQL_DEALLOC_ERROR)
+                    .arg(PQerrorMessage(conn_));
             }
         }
     }
@@ -298,10 +298,10 @@ PgSqlConnection::checkStatementError(const PgSqlResult& r,
              (memcmp(sqlstate, "54", 2) == 0) ||  // Program Limit exceeded
              (memcmp(sqlstate, "57", 2) == 0) ||  // Operator intervention
              (memcmp(sqlstate, "58", 2) == 0))) { // System error
-            LOG_ERROR(dhcpsrv_logger, DHCPSRV_PGSQL_FATAL_ERROR)
-                         .arg(statement.name)
-                         .arg(PQerrorMessage(conn_))
-                         .arg(sqlstate ? sqlstate : "<sqlstate null>");
+            DB_LOG_ERROR(PGSQL_FATAL_ERROR)
+                .arg(statement.name)
+                .arg(PQerrorMessage(conn_))
+                .arg(sqlstate ? sqlstate : "<sqlstate null>");
             // If there's no lost db callback, then exit
             if (!invokeDbLostCallback()) {
                 exit (-1);