]> git.mxchange.org Git - jcore.git/commitdiff
Added more logger
authorRoland Haeder <roland@mxchange.org>
Wed, 19 Aug 2015 13:01:01 +0000 (15:01 +0200)
committerRoland Haeder <roland@mxchange.org>
Wed, 19 Aug 2015 13:01:01 +0000 (15:01 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

src/org/mxchange/jcore/database/backend/mysql/MySqlDatabaseBackend.java

index b081ca861cc668f9e7e2d6bacd4e8d560ab52d05..81f8c9577033d09f89ece9690c7635e77315d04b 100644 (file)
@@ -202,6 +202,9 @@ public class MySqlDatabaseBackend extends BaseDatabaseBackend implements Databas
                // Prepare statement instance
                PreparedStatement statement = this.getPreparedStatement(query, values);
 
+               // Debug message
+               this.getLogger().debug(MessageFormat.format("statement={0}", statement));
+
                // Run it
                int status = statement.executeUpdate();
 
@@ -287,9 +290,15 @@ public class MySqlDatabaseBackend extends BaseDatabaseBackend implements Databas
                // Get a prepared instance
                PreparedStatement statement = this.getPreparedStatement(query, values);
 
+               // Debug message
+               this.getLogger().debug(MessageFormat.format("statement={0}", statement));
+
                // Run it
                ResultSet resultSet = statement.executeQuery();
 
+               // Debug message
+               this.getLogger().debug(MessageFormat.format("resultSet={0}", resultSet));
+
                // The result set needs to be transformed into Result, so initialize a result instance here
                Result<? extends Storeable> result = this.getFrontend().getResultFromSet(resultSet);