Mercurial > mxd2map
diff src/java/de/intevation/mxd/Converter.java @ 255:5c80058c08f6
Replaced error outputs with logging messages.
author | raimund renkert <raimund.renkert@intevation.de> |
---|---|
date | Mon, 15 Aug 2011 14:12:19 +0200 |
parents | df4e0946ef02 |
children | 10e0aa283217 |
line wrap: on
line diff
--- a/src/java/de/intevation/mxd/Converter.java Mon Aug 15 13:39:42 2011 +0200 +++ b/src/java/de/intevation/mxd/Converter.java Mon Aug 15 14:12:19 2011 +0200 @@ -100,7 +100,10 @@ mxdfile = readProperty("mxd"); } catch(Exception e) { - e.printStackTrace (); + logger.warn( + "No property file found. " + + "Please provide a valid property file or append " + + "parameters for mxd file, map file and template."); } } if(mapfile == null) { @@ -108,7 +111,10 @@ mapfile = readProperty("map"); } catch(Exception e) { - e.printStackTrace (); + logger.warn( + "No property file found. " + + "Please provide a valid property file or append " + + "parameters for mxd file, map file and template."); } } if(maptemplate == null) { @@ -116,7 +122,10 @@ maptemplate = readProperty("map-template"); } catch(Exception e) { - e.printStackTrace (); + logger.warn( + "No property file found. " + + "Please provide a valid property file or append " + + "parameters for mxd file, map file and template."); } } @@ -131,8 +140,10 @@ reader.shutdown(); } catch(Exception e) { - logger.error(e.getMessage()); - e.printStackTrace(); + logger.debug(e.getMessage()); + logger.error( + "General error." + + " See logging file for more information."); } }