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 * @param searchText
* @return * @return
*/ */
@ -45,7 +46,7 @@ public class ComplementAdviceManager {
AlphaFineHelper.checkCancel(); AlphaFineHelper.checkCancel();
allModelList = AlphaFineHelper.getModelListFromJSONArray(result, "keywords"); allModelList = AlphaFineHelper.getModelListFromJSONArray(result, "keywords");
} catch (Exception e) { } 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()) { 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) { } 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(); AlphaFineHelper.checkCancel();
allModelList = AlphaFineHelper.getModelListFromJSONArray(result, "title"); allModelList = AlphaFineHelper.getModelListFromJSONArray(result, "title");
} catch (Exception e) { } catch (Exception e) {
FineLoggerFactory.getLogger().debug("similar search error: " + e.getMessage()); FineLoggerFactory.getLogger().debug("similar search error.search str {}", searchText[j]);
} }
} }
moreModelList.clear(); moreModelList.clear();

Loading…
Cancel
Save