ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akuznet...@apache.org
Subject [07/14] incubator-ignite git commit: # sprint-2 Refactored to use JUL logger.
Date Wed, 04 Mar 2015 16:26:49 GMT
# sprint-2 Refactored to use JUL logger.


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

Branch: refs/heads/ignite-187
Commit: 882ded509d7eac6e24fcc69206fab70c33aed60e
Parents: e7f7f57
Author: AKuznetsov <akuznetsov@gridgain.com>
Authored: Wed Mar 4 21:45:05 2015 +0700
Committer: AKuznetsov <akuznetsov@gridgain.com>
Committed: Wed Mar 4 21:45:05 2015 +0700

----------------------------------------------------------------------
 .../apache/ignite/schema/parser/DatabaseMetadataParser.java   | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/882ded50/modules/schema-load/src/main/java/org/apache/ignite/schema/parser/DatabaseMetadataParser.java
----------------------------------------------------------------------
diff --git a/modules/schema-load/src/main/java/org/apache/ignite/schema/parser/DatabaseMetadataParser.java
b/modules/schema-load/src/main/java/org/apache/ignite/schema/parser/DatabaseMetadataParser.java
index a849bd2..696ca62 100644
--- a/modules/schema-load/src/main/java/org/apache/ignite/schema/parser/DatabaseMetadataParser.java
+++ b/modules/schema-load/src/main/java/org/apache/ignite/schema/parser/DatabaseMetadataParser.java
@@ -23,11 +23,15 @@ import org.apache.ignite.schema.parser.dialect.*;
 
 import java.sql.*;
 import java.util.*;
+import java.util.logging.*;
 
 /**
  * Database metadata parser.
  */
 public class DatabaseMetadataParser {
+    /** Logger. */
+    private static final Logger log = Logger.getLogger(DatabaseMetadataParser.class.getName());
+
     /**
      * Parse database metadata.
      *
@@ -50,8 +54,7 @@ public class DatabaseMetadataParser {
                 dialect = new JdbcMetadataDialect();
         }
         catch (SQLException e) {
-            System.err.println("Failed to resolve dialect (JdbcMetaDataDialect will be used.");
-            e.printStackTrace();
+            log.log(Level.SEVERE, "Failed to resolve dialect (JdbcMetaDataDialect will be
used.", e);
 
             dialect = new JdbcMetadataDialect();
         }


Mime
View raw message