Skip to content

Commit

Permalink
change log levle to 'trace' (#416)
Browse files Browse the repository at this point in the history
  • Loading branch information
linr211 authored Mar 7, 2020
1 parent 7b90931 commit ec4d697
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public TranslationMessage() {
*/
public String getString(final Locale locale, final String component,
final String key, final String source, final String comment, final Object... args) {
this.logger.debug("Start to execute TranslationMessage.getString");
this.logger.trace("Start to execute TranslationMessage.getString");
if (key == null || key.equalsIgnoreCase(""))
return "";
MessagesDTO dto = new MessagesDTO();
Expand Down Expand Up @@ -150,7 +150,7 @@ public String getString(final Locale locale, final String component,
*/
public boolean postStrings(final Locale locale, final String component,
final List<JSONObject> sources) {
this.logger.info("Start to execute TranslationMessage.postStrings");
this.logger.trace("Start to execute TranslationMessage.postStrings");
if (sources == null || sources.isEmpty())
return false;
MessagesDTO dto = new MessagesDTO();
Expand Down Expand Up @@ -204,7 +204,7 @@ public boolean postStrings(final Locale locale, final String component,
*/
public boolean postString(final Locale locale, final String component,
final String key, final String source, final String comment) {
this.logger.info("Start to execute TranslationMessage.postString");
this.logger.trace("Start to execute TranslationMessage.postString");
MessagesDTO dto = new MessagesDTO();
dto.setComponent(component);
dto.setComment(comment);
Expand Down Expand Up @@ -238,7 +238,7 @@ public boolean postString(final Locale locale, final String component,
*/
public Map<String, String> getStrings(final Locale locale,
final String component) {
this.logger.info("Start to execute TranslationMessage.getStrings");
this.logger.trace("Start to execute TranslationMessage.getStrings");
MessagesDTO dto = new MessagesDTO();
dto.setLocale(locale.toLanguageTag());
dto.setComponent(component);
Expand All @@ -264,7 +264,7 @@ public Map<String, String> getStrings(final Locale locale,
*/
public Map<Locale, Map<String, Map<String, String>>> getStrings(final Set<Locale> locales,
final Set<String> components) {
this.logger.info("Start to execute TranslationMessage.getStrings of multiple components of multiple locales.");
this.logger.trace("Start to execute TranslationMessage.getStrings of multiple components of multiple locales.");

Map<Locale, Map<String, Map<String, String>>> retMap = new HashMap<>();
if (null == locales || locales.isEmpty() || null == components || components.isEmpty()) {
Expand Down Expand Up @@ -309,7 +309,7 @@ public Map<Locale, Map<String, Map<String, String>>> getStrings(final Set<Locale
*/
public String getString2(final String component,
final String bundle, final Locale locale, final String key, final Object... args) {
this.logger.debug("Start to execute TranslationMessage.getString2");
this.logger.trace("Start to execute TranslationMessage.getString2");
if (key == null || key.equalsIgnoreCase(""))
return "";
String message = "";
Expand All @@ -335,7 +335,7 @@ public String getString2(final String component,
* @return
*/
public boolean isAvailable(final String component, final Locale locale) {
this.logger.info("Start to execute component-based TranslationMessage.isAvailable");
this.logger.trace("Start to execute component-based TranslationMessage.isAvailable");
boolean available = false;
if (!LocaleUtility.isDefaultLocale(locale)) {
MessagesDTO dto = new MessagesDTO();
Expand All @@ -359,7 +359,7 @@ public boolean isAvailable(final String component, final Locale locale) {
* @return
*/
public boolean isAvailable(final String component, final String key, final Locale locale) {
this.logger.info("Start to execute string-based TranslationMessage.isAvailable");
this.logger.trace("Start to execute string-based TranslationMessage.isAvailable");
boolean available = false;
if (!LocaleUtility.isDefaultLocale(locale)) {
MessagesDTO dto = new MessagesDTO();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public Map<String, Map<String, String>> getTerritoriesFromCLDR(
for (String language : languages) {
language = language.toLowerCase();
Map<String, String> regionMap = null;
logger.info("look for region list of '" + language + "' from cache");
logger.trace("look for region list of '" + language + "' from cache");
Cache c = VIPCfg.getInstance().getCacheManager()
.getCache(VIPCfg.CACHE_L2);
if (c != null) {
Expand All @@ -42,7 +42,7 @@ public Map<String, Map<String, String>> getTerritoriesFromCLDR(
respMap.put(language, regionMap);
continue;
}
logger.info("get region list of '" + language
logger.trace("get region list of '" + language
+ "' data from backend");
Map<String, String> tmpMap = new LocaleOpt()
.getTerritoriesFromCLDR(language);
Expand All @@ -57,13 +57,13 @@ public Map<String, Map<String, String>> getTerritoriesFromCLDR(

public Map<String, String> getDisplayNamesFromCLDR(String language) {
Map<String, String> dispMap = null;
logger.info("look for displayNames from cache");
logger.trace("look for displayNames from cache");
Cache c = VIPCfg.getInstance().getCacheManager()
.getCache(VIPCfg.CACHE_L2);
if (c != null) {
dispMap = (Map<String, String>) c.get(DISPN_PREFIX + language);
if (dispMap == null || dispMap.size() == 0) {
logger.info("get displayname data from backend");
logger.trace("get displayname data from backend");
Map<String, String> tmpMap = new LocaleOpt()
.getDisplayNamesFromCLDR(language);
dispMap = JSONUtils.map2SortMap(tmpMap);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public JSONObject getPatterns(String language, String region) {
private JSONObject getPatternsFromBundle(String locale) {
JSONObject patterns = null;
if (LocaleUtility.isDefaultLocale(locale)) {
logger.info("Got pattern from local bundle!");
logger.debug("Got pattern from local bundle!");
patterns = new LocalPatternOpt()
.getPatternsByLocale(ConstantsKeys.EN);
} else {
Expand Down

0 comments on commit ec4d697

Please sign in to comment.