From 0525ca17e969e803c60fbce56ec6e4f0c351e221 Mon Sep 17 00:00:00 2001 From: mdb Date: Thu, 7 Jul 2005 06:44:26 +0000 Subject: [PATCH] In the interest of no needless log messages; suppress the standard "(I analyzed the table and it was) OK" message. git-svn-id: https://samskivert.googlecode.com/svn/trunk@1673 6335cc39-0255-0410-8fd6-9bcaacd3b74c --- .../src/java/com/samskivert/jdbc/SimpleRepository.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/projects/samskivert/src/java/com/samskivert/jdbc/SimpleRepository.java b/projects/samskivert/src/java/com/samskivert/jdbc/SimpleRepository.java index 6904dbd7..39c06ed8 100644 --- a/projects/samskivert/src/java/com/samskivert/jdbc/SimpleRepository.java +++ b/projects/samskivert/src/java/com/samskivert/jdbc/SimpleRepository.java @@ -278,11 +278,13 @@ public class SimpleRepository extends Repository Statement stmt = null; try { stmt = conn.createStatement(); - ResultSet rs = stmt.executeQuery(action + " table " + table); + ResultSet rs = stmt.executeQuery( + action + " table " + table); while (rs.next()) { String result = rs.getString("Msg_text"); if (result == null || - result.indexOf("up to date") == -1) { + result.indexOf("up to date") == -1 && + !result.equals("OK")) { Log.info("Table maintenance [" + SimpleRepository.toString(rs) + "]."); }