Skip to content

Commit

Permalink
SAK-33728. Revert logger change from SAK-31796 (sakaiproject#5119)
Browse files Browse the repository at this point in the history
  • Loading branch information
Miguel Pellicer authored and jonespm committed Dec 13, 2017
1 parent 221a903 commit fd657d6
Showing 1 changed file with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,21 @@
import java.util.ResourceBundle;
import java.util.Set;

import lombok.extern.slf4j.Slf4j;
import java.util.logging.Logger;

/**
* An utility class to get a value from the resource bundles.
*
* @author Yuki Yamada
*
*/
@Slf4j
public final class SakaiLocaleServiceProviderUtil {

/**
* A global logger.
*/
private static final Logger log = Logger.getLogger(Logger.GLOBAL_LOGGER_NAME);

/**
* A set of all locales for the resource bundles.
*/
Expand All @@ -56,12 +60,12 @@ private SakaiLocaleServiceProviderUtil() {
try {
props.load(inStream);
} catch (IOException e) {
log.warn(e.getMessage());
log.warning(e.getMessage());
} finally {
try {
inStream.close();
} catch (IOException e) {
log.warn(e.getMessage());
log.warning(e.getMessage());
}
}
}
Expand Down Expand Up @@ -189,7 +193,7 @@ private static ResourceBundle getBundle(final Locale locale) {
try {
rb = ResourceBundle.getBundle("SakaiLocaleServiceProvider", locale, loader);
} catch (MissingResourceException e) {
log.warn(e.getMessage());
log.warning(e.getMessage());
}
}

Expand Down

0 comments on commit fd657d6

Please sign in to comment.