aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin/data/util/sqlcontainer/query/TableQuery.java
diff options
context:
space:
mode:
authorMikael Grankvist <mgrankvi@vaadin.com>2013-01-08 09:07:53 +0200
committerVaadin Code Review <review@vaadin.com>2013-02-28 09:26:27 +0000
commitaa42551d80088583a2063a596dc1099b669ee9cb (patch)
treeac864874fe645606dbbf9ea95793ea0da82b7e6e /server/src/com/vaadin/data/util/sqlcontainer/query/TableQuery.java
parent51fcdd88c1928c7c2537827e1a224fe171d492a9 (diff)
downloadvaadin-framework-aa42551d80088583a2063a596dc1099b669ee9cb.tar.gz
vaadin-framework-aa42551d80088583a2063a596dc1099b669ee9cb.zip
(#10563) Logging now uses parameters.
Change-Id: Icc807cc2eb391fb0118800383fc93d1e23b04570
Diffstat (limited to 'server/src/com/vaadin/data/util/sqlcontainer/query/TableQuery.java')
-rw-r--r--server/src/com/vaadin/data/util/sqlcontainer/query/TableQuery.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/server/src/com/vaadin/data/util/sqlcontainer/query/TableQuery.java b/server/src/com/vaadin/data/util/sqlcontainer/query/TableQuery.java
index 4d60a8cc17..63e4b3362c 100644
--- a/server/src/com/vaadin/data/util/sqlcontainer/query/TableQuery.java
+++ b/server/src/com/vaadin/data/util/sqlcontainer/query/TableQuery.java
@@ -610,8 +610,10 @@ public class TableQuery implements QueryDelegate,
@Override
public boolean removeRow(RowItem row) throws UnsupportedOperationException,
SQLException {
- getLogger().log(Level.FINE, "Removing row with id: {0}",
- row.getId().getId()[0].toString());
+ if (getLogger().isLoggable(Level.FINE)) {
+ getLogger().log(Level.FINE, "Removing row with id: {0}",
+ row.getId().getId()[0]);
+ }
if (executeUpdate(sqlGenerator.generateDeleteQuery(getTableName(),
primaryKeyColumns, versionColumn, row)) == 1) {
return true;