Commit f74b11f5 authored by Andrea Aime's avatar Andrea Aime
Browse files

Dont' use printstacktrace, use logging as the TODO says...

parent 8b700e27
......@@ -152,8 +152,7 @@ public abstract class GeoServerLoader {
initer.initialize( geoServer );
}
catch( Throwable t ) {
//TODO: log this
t.printStackTrace();
LOGGER.log(Level.SEVERE, "Failed to run initializer " + initer, t);
}
}
}
......@@ -709,8 +708,7 @@ public abstract class GeoServerLoader {
LOGGER.info( "Loaded service '" + s.getId() + "', " + (s.isEnabled()?"enabled":"disabled") );
}
catch( Throwable t ) {
//TODO: log this
t.printStackTrace();
LOGGER.log(Level.SEVERE, "Failed to load the service configuration in directory: " + directory.getPath(), t);
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment