Does anyone see a reason why the log output on this method shouldn't be WARN instead of ERROR? Seems like it degrades gracefully and doesn't warrant an alarm like log.error...
org.dspace.core.I18nUtil.java... ... /** * Get the Locale for a specified EPerson. If the language is missing, * return the default Locale for the repository. * * @param ep * @return */ public static Locale getEPersonLocale(EPerson ep) { if (ep == null) { log.error("No EPerson specified, returning default locale"); return I18nUtil.getDefaultLocale(); } String lang = ep.getLanguage(); if (StringUtils.isBlank(lang)) { log.error("No language specified for EPerson " + ep.getID()); return I18nUtil.getDefaultLocale(); } return I18nUtil.getSupportedLocale(new Locale(lang)); } ... -- sands fish Software Engineer MIT Libraries Technology Research & Development sa...@mit.edu<mailto:sa...@mit.edu> E25-131
------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________ Dspace-devel mailing list Dspace-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-devel