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

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


The following commit(s) were added to refs/heads/8.5.x by this push:
     new 5856971  Add missing string
5856971 is described below

commit 5856971cef7f96581b3a4f4b1c5c26cce75c8d70
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 6da6b69..4543f01 100644
--- a/java/org/apache/catalina/realm/DataSourceRealm.java
+++ b/java/org/apache/catalina/realm/DataSourceRealm.java
@@ -368,7 +368,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 8b4f5ca..2b4eb86 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