Revision: 6395
http://sourceforge.net/p/jump-pilot/code/6395
Author: edso
Date: 2020-08-28 14:51:08 +0000 (Fri, 28 Aug 2020)
Log Message:
-----------
kept error stack when logging errors
minor spelling fixes
Modified Paths:
--------------
core/trunk/src/com/vividsolutions/jump/datastore/spatialite/SpatialiteDSMetadata.java
Modified:
core/trunk/src/com/vividsolutions/jump/datastore/spatialite/SpatialiteDSMetadata.java
===================================================================
---
core/trunk/src/com/vividsolutions/jump/datastore/spatialite/SpatialiteDSMetadata.java
2020-08-28 14:26:37 UTC (rev 6394)
+++
core/trunk/src/com/vividsolutions/jump/datastore/spatialite/SpatialiteDSMetadata.java
2020-08-28 14:51:08 UTC (rev 6395)
@@ -298,17 +298,17 @@
this.setSpatialiteVersion(rs.getString(1));
Logger.info(
- "SpatialDatabasesPlugin: Spatialite extension loaded for this
connexion, version: "
+ "SpatialDatabasesPlugin: Spatialite extension version loaded for
this connection is "
+ this.getSpatialiteVersion());
} catch (Exception e) {
Logger.warn(
- "SpatialDatabasesPlugin: CANNOT load Spatialite Extention
(mod_spatialite), reason:"
- + e.getMessage());
+ "SpatialDatabasesPlugin: CANNOT load Spatialite extension
(mod_spatialite)."
+ , e);
} finally {
try {
// stmt.close();
} catch (Throwable th) {
- Logger.error(th.getMessage());
+ Logger.error(th);
}
}
}
@@ -407,10 +407,8 @@
}
}
}
-
} catch (Exception e) {
- e.printStackTrace();
- Logger.error("Error getting geometry_column layout: " + e.getMessage());
+ Logger.error("Error getting geometry_column layout.", e);
}
}
@@ -439,7 +437,7 @@
}
});
} catch (Exception e) {
- Logger.error("Cannot get geometric column type: " + e.getMessage());
+ Logger.error("Cannot get geometric column type!", e);
}
}
@@ -483,9 +481,10 @@
}
});
} catch (Exception e) {
- Logger.error("Error when setting index information: " + e.getMessage());
+ Logger.error("Error setting index information!", e );
} finally {
- if (gc.isIndexed() == null) gc.setIndexed(false);
+ if (gc.isIndexed() == null)
+ gc.setIndexed(false);
}
}
_______________________________________________
Jump-pilot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel