From f79ca6a9b3fade2883ee1574305d189a9794e8c7 Mon Sep 17 00:00:00 2001 From: RichieJi Date: Fri, 2 Mar 2018 16:41:56 +0800 Subject: [PATCH] =?UTF-8?q?CORE-39=20=E5=85=AC=E5=85=B1=E9=83=A8=E5=88=86?= =?UTF-8?q?=E7=9A=84=E4=BB=A3=E7=A0=81=E9=81=BF=E5=85=8D=E5=8D=95=E7=8B=AC?= =?UTF-8?q?=E7=9A=84FR=E5=87=BA=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../search/manager/impl/RecentSearchManager.java | 14 +++++++------- .../src/com/fr/design/utils/DesignUtils.java | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/designer/src/com/fr/design/mainframe/alphafine/search/manager/impl/RecentSearchManager.java b/designer/src/com/fr/design/mainframe/alphafine/search/manager/impl/RecentSearchManager.java index e2d9ba74d8..38df0fa0cd 100644 --- a/designer/src/com/fr/design/mainframe/alphafine/search/manager/impl/RecentSearchManager.java +++ b/designer/src/com/fr/design/mainframe/alphafine/search/manager/impl/RecentSearchManager.java @@ -12,7 +12,7 @@ import com.fr.design.mainframe.toolbar.UpdateActionManager; import com.fr.general.Inter; import com.fr.json.JSONException; import com.fr.json.JSONObject; -import com.fr.log.FRLoggerFactory; +import com.fr.log.FineLoggerFactory; import com.fr.stable.ProductConstants; import com.fr.third.org.apache.lucene.analysis.Analyzer; import com.fr.third.org.apache.lucene.analysis.standard.StandardAnalyzer; @@ -98,12 +98,12 @@ public class RecentSearchManager implements AlphaFineSearchProvider { try { directory = FSDirectory.open(new File(path)); } catch (IOException e) { - FRLoggerFactory.getLogger().error("cannot open directory " + path); + FineLoggerFactory.getLogger().error("cannot open directory " + path); } try { indexWriter = new IndexWriter(directory, config); } catch (IOException e) { - FRLoggerFactory.getLogger().error("not privilege to write to" + path); + FineLoggerFactory.getLogger().error("not privilege to write to" + path); } } @@ -118,7 +118,7 @@ public class RecentSearchManager implements AlphaFineSearchProvider { directory = FSDirectory.open(new File(path)); indexReader = DirectoryReader.open(directory); } catch (IOException e) { - FRLoggerFactory.getLogger().error("not privilege to read " + path); + FineLoggerFactory.getLogger().error("not privilege to read " + path); } indexSearcher = new IndexSearcher(indexReader); } @@ -140,7 +140,7 @@ public class RecentSearchManager implements AlphaFineSearchProvider { doc.add(new IntField("searchCount", searchCount, Field.Store.YES)); writeDoc(doc); } catch (JSONException e) { - FRLoggerFactory.getLogger().error("add document error: " + e.getMessage()); + FineLoggerFactory.getLogger().error("add document error: " + e.getMessage()); } } @@ -154,7 +154,7 @@ public class RecentSearchManager implements AlphaFineSearchProvider { indexWriter.commit(); indexWriter.close(); } catch (IOException e) { - FRLoggerFactory.getLogger().error("write document error: " + e.getMessage()); + FineLoggerFactory.getLogger().error("write document error: " + e.getMessage()); } } @@ -195,7 +195,7 @@ public class RecentSearchManager implements AlphaFineSearchProvider { } } catch (Exception e) { - FRLoggerFactory.getLogger().error("local search error: " + e.getMessage()); + FineLoggerFactory.getLogger().error("local search error: " + e.getMessage()); return recentModelList; } return recentModelList; diff --git a/designer_base/src/com/fr/design/utils/DesignUtils.java b/designer_base/src/com/fr/design/utils/DesignUtils.java index 38e7aab79e..941a39ef1e 100644 --- a/designer_base/src/com/fr/design/utils/DesignUtils.java +++ b/designer_base/src/com/fr/design/utils/DesignUtils.java @@ -353,7 +353,7 @@ public class DesignUtils { } else { try { String web = GeneralContext.getCurrentAppNameOfEnv(); - String url = "http://localhost:" + DesignerEnvManager.getEnvManager().getJettyServerPort() + "/" + web + "/" + ServerConfig.getInstance().getServletName() + String url = "http://localhost:" + DesignerEnvManager.getEnvManager().getJettyServerPort() + "/" + web + "/" + ServerConfig.getInstance().getReportServletName() + postfixOfUri; StartServer.browserURLWithLocalEnv(url); } catch (Throwable e) {