Browse Source

使用模板打debug日志

final/10.0
alex.sung 6 years ago
parent
commit
88db8fbe54
  1. 3
      designer-realize/src/main/java/com/fr/design/mainframe/alphafine/search/manager/impl/ComplementAdviceManager.java
  2. 2
      designer-realize/src/main/java/com/fr/design/mainframe/alphafine/search/manager/impl/RecommendSearchManager.java
  3. 2
      designer-realize/src/main/java/com/fr/design/mainframe/alphafine/search/manager/impl/SimilarSearchManeger.java

3
designer-realize/src/main/java/com/fr/design/mainframe/alphafine/search/manager/impl/ComplementAdviceManager.java

@ -30,6 +30,7 @@ public class ComplementAdviceManager {
/**
* 从接口中获取补全建议结果
*
* @param searchText
* @return
*/
@ -45,7 +46,7 @@ public class ComplementAdviceManager {
AlphaFineHelper.checkCancel();
allModelList = AlphaFineHelper.getModelListFromJSONArray(result, "keywords");
} catch (Exception e) {
FineLoggerFactory.getLogger().debug("complement advice search error: " + e.getMessage());
FineLoggerFactory.getLogger().debug("complement advice search error. search str {}", searchText[j]);
}
}
if (searchResult.isEmpty()) {

2
designer-realize/src/main/java/com/fr/design/mainframe/alphafine/search/manager/impl/RecommendSearchManager.java

@ -75,7 +75,7 @@ public class RecommendSearchManager implements AlphaFineSearchProvider {
}
}
} catch (Exception e) {
FineLoggerFactory.getLogger().debug("recommend search get result error! :" + e.getMessage());
FineLoggerFactory.getLogger().debug("recommend search get result error! search str {}", searchText[j]);
}
}

2
designer-realize/src/main/java/com/fr/design/mainframe/alphafine/search/manager/impl/SimilarSearchManeger.java

@ -53,7 +53,7 @@ public class SimilarSearchManeger implements AlphaFineSearchProvider {
AlphaFineHelper.checkCancel();
allModelList = AlphaFineHelper.getModelListFromJSONArray(result, "title");
} catch (Exception e) {
FineLoggerFactory.getLogger().debug("similar search error: " + e.getMessage());
FineLoggerFactory.getLogger().debug("similar search error.search str {}", searchText[j]);
}
}
moreModelList.clear();

Loading…
Cancel
Save