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
This commit is contained in:
@@ -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) + "].");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user