Skip to content

Commit

Permalink
Add extra info to log
Browse files Browse the repository at this point in the history
  • Loading branch information
Tara Drwenski committed Mar 5, 2024
1 parent 7b2479c commit b4b10cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tds/src/main/java/thredds/server/config/TdsConfigMapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ static void load(WmsConfigBean wmsConfig, TdsContext tdsContext) {
getValueFromThreddsConfigOrDefault(WMS_PALETTE_LOCATION_DIR, defaultPaletteLocation);
wmsConfig.setPaletteLocationDir(paletteLocation);
try {
startupLog.info("Loading custom WMS palette files from " + paletteLocation);
ColourPalette.addPaletteDirectory(new File(paletteLocation));
} catch (FileNotFoundException e) {
// If there is an error adding a custom palette, it is logged in the server startup log by edal-java.
Expand All @@ -226,6 +227,7 @@ static void load(WmsConfigBean wmsConfig, TdsContext tdsContext) {
final String stylesLocation = getValueFromThreddsConfigOrDefault(WMS_STYLES_LOCATION_DIR, defaultStylesLocation);
wmsConfig.setStylesLocationDir(stylesLocation);
try {
startupLog.info("Loading custom WMS style files from " + stylesLocation);
SldTemplateStyleCatalogue.getStyleCatalogue().addStylesInDirectory(new File(stylesLocation));
} catch (FileNotFoundException e) {
if (!stylesLocation.equals(defaultStylesLocation)) {
Expand Down

0 comments on commit b4b10cf

Please sign in to comment.