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

remm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/main by this push:
     new 9de2c40  Add missing string
9de2c40 is described below

commit 9de2c402accda16824d0c2fd818d2f5d372ab404
Author: remm <r...@apache.org>
AuthorDate: Tue Jul 6 14:46:58 2021 +0200

    Add missing string
---
 java/org/apache/catalina/realm/DataSourceRealm.java    | 2 +-
 java/org/apache/catalina/realm/LocalStrings.properties | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/java/org/apache/catalina/realm/DataSourceRealm.java 
b/java/org/apache/catalina/realm/DataSourceRealm.java
index 00ab14b..5adf14f 100644
--- a/java/org/apache/catalina/realm/DataSourceRealm.java
+++ b/java/org/apache/catalina/realm/DataSourceRealm.java
@@ -360,7 +360,7 @@ public class DataSourceRealm extends RealmBase {
                 dbConnection.commit();
             }
         } catch (SQLException e) {
-            containerLog.error("Exception committing connection before 
closing:", e);
+            containerLog.error(sm.getString("dataSourceRealm.commit"), e);
         }
 
         // Close this database connection, and log any errors
diff --git a/java/org/apache/catalina/realm/LocalStrings.properties 
b/java/org/apache/catalina/realm/LocalStrings.properties
index 49034d1..cd09ed4 100644
--- a/java/org/apache/catalina/realm/LocalStrings.properties
+++ b/java/org/apache/catalina/realm/LocalStrings.properties
@@ -28,6 +28,7 @@ credentialHandler.invalidStoredCredential=The invalid stored 
credential string [
 dataSourceRealm.authenticateFailure=Username [{0}] NOT successfully 
authenticated
 dataSourceRealm.authenticateSuccess=Username [{0}] successfully authenticated
 dataSourceRealm.close=Exception closing database connection
+dataSourceRealm.commit=Exception committing connection before closing
 dataSourceRealm.exception=Exception performing authentication
 dataSourceRealm.getPassword.exception=Exception retrieving password for [{0}]
 dataSourceRealm.getRoles.exception=Exception retrieving roles for [{0}]

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to