ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anovi...@apache.org
Subject [1/3] ignite git commit: IGNITE-1660 Add jdbc error logging.
Date Fri, 16 Oct 2015 10:37:01 GMT
Repository: ignite
Updated Branches:
  refs/heads/ignite-843-rc1 58bc59816 -> e4078904f


IGNITE-1660 Add jdbc error logging.


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/6cae5c55
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/6cae5c55
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/6cae5c55

Branch: refs/heads/ignite-843-rc1
Commit: 6cae5c55689e936b045d6d665f11ec061ff54087
Parents: c865503
Author: Andrey <anovikov@gridgain.com>
Authored: Fri Oct 16 09:11:08 2015 +0700
Committer: Andrey <anovikov@gridgain.com>
Committed: Fri Oct 16 09:54:50 2015 +0700

----------------------------------------------------------------------
 .../ignite/agent/handlers/DatabaseMetadataExtractor.java  | 10 ++++++++++
 .../src/main/resources/logging.properties                 |  1 +
 2 files changed, 11 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/6cae5c55/modules/control-center-agent/src/main/java/org/apache/ignite/agent/handlers/DatabaseMetadataExtractor.java
----------------------------------------------------------------------
diff --git a/modules/control-center-agent/src/main/java/org/apache/ignite/agent/handlers/DatabaseMetadataExtractor.java
b/modules/control-center-agent/src/main/java/org/apache/ignite/agent/handlers/DatabaseMetadataExtractor.java
index 2c9037f..4fa7119 100644
--- a/modules/control-center-agent/src/main/java/org/apache/ignite/agent/handlers/DatabaseMetadataExtractor.java
+++ b/modules/control-center-agent/src/main/java/org/apache/ignite/agent/handlers/DatabaseMetadataExtractor.java
@@ -92,6 +92,11 @@ public class DatabaseMetadataExtractor {
 
             return schemas;
         }
+        catch (SQLException e) {
+            log.log(Level.SEVERE, "Failed to collect schemas", e);
+
+            throw e;
+        }
     }
 
     /**
@@ -116,6 +121,11 @@ public class DatabaseMetadataExtractor {
 
             return metadata;
         }
+        catch (SQLException e) {
+            log.log(Level.SEVERE, "Failed to collect metadata", e);
+
+            throw e;
+        }
     }
 
     /**

http://git-wip-us.apache.org/repos/asf/ignite/blob/6cae5c55/modules/control-center-agent/src/main/resources/logging.properties
----------------------------------------------------------------------
diff --git a/modules/control-center-agent/src/main/resources/logging.properties b/modules/control-center-agent/src/main/resources/logging.properties
index eb80de5..e262eb8 100644
--- a/modules/control-center-agent/src/main/resources/logging.properties
+++ b/modules/control-center-agent/src/main/resources/logging.properties
@@ -19,6 +19,7 @@ handlers=java.util.logging.ConsoleHandler, java.util.logging.FileHandler
 
 org.apache.http.level=INFO
 org.apache.commons.beanutils.level=INFO
+sun.net.www.protocol.http.level=INFO
 
 java.util.logging.ConsoleHandler.formatter=org.apache.ignite.logger.java.JavaLoggerFormatter
 java.util.logging.ConsoleHandler.level=INFO


Mime
View raw message