From 8115b37f60ebb8bb4e31680ebce2fa62080112e1 Mon Sep 17 00:00:00 2001 From: matthew Date: Mon, 10 Oct 2022 20:13:07 +0400 Subject: [PATCH] delete console.log --- .../app/core/pages/Main/LastSitesWidget/LastSitesWidget.tsx | 4 ++-- searching-front/services/modules/elastic/index.ts | 1 - searching-front/services/modules/parser/helpers.ts | 1 - searching-front/services/parser.ts | 1 - 4 files changed, 2 insertions(+), 5 deletions(-) diff --git a/searching-front/app/core/pages/Main/LastSitesWidget/LastSitesWidget.tsx b/searching-front/app/core/pages/Main/LastSitesWidget/LastSitesWidget.tsx index cae2ded..9b5b340 100644 --- a/searching-front/app/core/pages/Main/LastSitesWidget/LastSitesWidget.tsx +++ b/searching-front/app/core/pages/Main/LastSitesWidget/LastSitesWidget.tsx @@ -33,14 +33,14 @@ const LastSitesWidget = (props: Props) => { onClick={()=>count('from_main_new_sites_widget_to_site')} > {getDomainFromUrl(i.address)} - ))} - diff --git a/searching-front/services/modules/elastic/index.ts b/searching-front/services/modules/elastic/index.ts index 9d1d8df..e78beb4 100644 --- a/searching-front/services/modules/elastic/index.ts +++ b/searching-front/services/modules/elastic/index.ts @@ -103,7 +103,6 @@ class Elastic { public index = async (params: ElasticIndexParams) => { const indexName = getIndexNameByText(params.title + params.bodyText) - console.log('index',params) await this.client.index({ index: indexName, id: params.url, diff --git a/searching-front/services/modules/parser/helpers.ts b/searching-front/services/modules/parser/helpers.ts index 338acba..8fa7ff3 100644 --- a/searching-front/services/modules/parser/helpers.ts +++ b/searching-front/services/modules/parser/helpers.ts @@ -19,7 +19,6 @@ export const htmlToText = (html: string) => { .replaceAll(//g, "") .replaceAll(/<.*><\/.*>/g, "") } catch (e) { - console.log("htmlToText", e) return "" } } diff --git a/searching-front/services/parser.ts b/searching-front/services/parser.ts index 85a18ab..0e9ee7d 100644 --- a/searching-front/services/parser.ts +++ b/searching-front/services/parser.ts @@ -11,7 +11,6 @@ const findFirstNotIndexed = (subpages: SubPages = {}) => { } const indexWebsite = async (domain: string, path: string, subpages: SubPages = {},count=0) => { - console.log(subpages) const subpagesLength = Object.keys(subpages).length; if (!subpages[path]) { const url = domain + path;