You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@empire-db.apache.org by do...@apache.org on 2023/06/30 07:44:31 UTC

[empire-db] branch master updated: EMPIREDB-410 logging fix for model checker

This is an automated email from the ASF dual-hosted git repository.

doebele pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/empire-db.git


The following commit(s) were added to refs/heads/master by this push:
     new 5869a3b8 EMPIREDB-410 logging fix for model checker
5869a3b8 is described below

commit 5869a3b8762353b2ab94ac40053300c2a6ece8ef
Author: Rainer Döbele <do...@apache.org>
AuthorDate: Fri Jun 30 09:44:27 2023 +0200

    EMPIREDB-410
    logging fix for model checker
---
 .../main/java/org/apache/empire/db/validation/DBModelErrorLogger.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/empire-db/src/main/java/org/apache/empire/db/validation/DBModelErrorLogger.java b/empire-db/src/main/java/org/apache/empire/db/validation/DBModelErrorLogger.java
index bc989a52..f1a5ff78 100644
--- a/empire-db/src/main/java/org/apache/empire/db/validation/DBModelErrorLogger.java
+++ b/empire-db/src/main/java/org/apache/empire/db/validation/DBModelErrorLogger.java
@@ -79,7 +79,7 @@ public class DBModelErrorLogger implements DBModelErrorHandler
         else if (dbo instanceof DBIndex)
         {
             DBIndex dbi = (DBIndex) dbo;
-            logError("The primary key {} for table{} does not exist in the target database.", dbi.getName(), dbi.getTable().getName());
+            logError("The primary key {} for table {} does not exist in the target database.", dbi.getName(), dbi.getTable().getName());
         }
         else if (dbo instanceof DBView)
         {
@@ -196,7 +196,7 @@ public class DBModelErrorLogger implements DBModelErrorHandler
         }
         b.append("]");
         tblColumns = b.toString();
-        logError("The primary key of table {} {} does not match the key of the existing table {}.", primaryKey.getTable().getName(), defColumns, tblColumns);
+        logWarn("The primary key of table {} {} does not match the key of the existing table {}.", primaryKey.getTable().getName(), defColumns, tblColumns);
         // increase count
         warnCount++;
     }