From 14afb15efa98d83ca94715e6496d03d991a72540 Mon Sep 17 00:00:00 2001 From: Nicola Lanzilotto Date: Tue, 16 Apr 2024 19:56:45 +0200 Subject: [PATCH] Removes log --- src/app/app-store/app-store.component.ts | 4 ++-- .../chatbot-modal/chatbot-modal.component.ts | 4 ++-- .../messages-stats-modal.component.ts | 2 +- .../configure-widget/configure-widget.component.ts | 2 +- .../home-create-chatbot.component.ts | 2 +- src/app/integrations/integrations.component.ts | 6 +++--- .../ext-integration/ext-integration.component.ts | 12 ++++++------ .../pricing/pricing-base/pricing-base.component.ts | 8 ++++---- 8 files changed, 20 insertions(+), 20 deletions(-) diff --git a/src/app/app-store/app-store.component.ts b/src/app/app-store/app-store.component.ts index 4846202b7ec3..c66bae55c54e 100644 --- a/src/app/app-store/app-store.component.ts +++ b/src/app/app-store/app-store.component.ts @@ -266,14 +266,14 @@ export class AppStoreComponent extends PricingBaseComponent implements OnInit, O getApps() { this.appStoreService.getApps().subscribe((_apps: any) => { this.apps = _apps.apps; - console.log('APP-STORE - getApps APPS ', this.apps); + this.logger.log('APP-STORE - getApps APPS ', this.apps); // 'Help Center' let paidApps = ['WhatsApp Business', 'Facebook Messenger', 'Telegram'] this.apps = this.apps.filter(x => !paidApps.includes(x.title)); - console.log('APP-STORE - getApps APPS ', this.apps) + this.logger.log('APP-STORE - getApps APPS ', this.apps) const sendTranscriptAppIndex = this.apps.findIndex(object => { diff --git a/src/app/bots/bots-list/chatbot-modal/chatbot-modal.component.ts b/src/app/bots/bots-list/chatbot-modal/chatbot-modal.component.ts index 690a33839296..6cd1ab30c6f6 100644 --- a/src/app/bots/bots-list/chatbot-modal/chatbot-modal.component.ts +++ b/src/app/bots/bots-list/chatbot-modal/chatbot-modal.component.ts @@ -28,10 +28,10 @@ export class ChatbotModalComponent implements OnInit { ) { this.logger.log('[CHATBOT-MODAL] data ', data) if (data && data.projectProfile && data.chatBotLimit != 0) { - console.log('[CHATBOT-MODAL] projectProfile ', data.projectProfile , ' USECASE chatBotLimit ', data.chatBotLimit) + this.logger.log('[CHATBOT-MODAL] projectProfile ', data.projectProfile , ' USECASE chatBotLimit ', data.chatBotLimit) this.getTranslatedStringChatbotLimitReached(data.projectProfile) } else if (data && data.projectProfile && data.chatBotLimit == 0) { - console.log('[CHATBOT-MODAL] projectProfile ', data.projectProfile , ' USECASE chatBotLimit ', data.chatBotLimit) + this.logger.log('[CHATBOT-MODAL] projectProfile ', data.projectProfile , ' USECASE chatBotLimit ', data.chatBotLimit) this.getTranslatedStringChatbotAreNotAvailableInYourCurrentPlan() } if (data && data.callingPage) { diff --git a/src/app/components/modals/messages-stats-modal/messages-stats-modal.component.ts b/src/app/components/modals/messages-stats-modal/messages-stats-modal.component.ts index c76d35e29d0b..74c76287171f 100644 --- a/src/app/components/modals/messages-stats-modal/messages-stats-modal.component.ts +++ b/src/app/components/modals/messages-stats-modal/messages-stats-modal.component.ts @@ -290,7 +290,7 @@ export class MessagesStatsModalComponent implements OnInit { }] }) }, (error) => { - console.error('[CHATBOT-STATS-MODALl] »» MESSAGES BY DAY - ERROR ', error); + this.logger.error('[CHATBOT-STATS-MODALl] »» MESSAGES BY DAY - ERROR ', error); this.showSpinner = false }, () => { this.logger.log('[CHATBOT-STATS-MODALl] »» MESSAGES BY DAY - * COMPLETE * '); diff --git a/src/app/create-project-wizard/configure-widget/configure-widget.component.ts b/src/app/create-project-wizard/configure-widget/configure-widget.component.ts index 6178c590cd8c..d36a22622af2 100755 --- a/src/app/create-project-wizard/configure-widget/configure-widget.component.ts +++ b/src/app/create-project-wizard/configure-widget/configure-widget.component.ts @@ -102,7 +102,7 @@ export class ConfigureWidgetComponent extends WidgetSetUpBaseComponent implement // this.widgetLogoURL = brand['widget_logo_URL'] this.widgetLogoURL = brand['LOGO_CHAT']; - console.log('[WIZARD - CONFIGURE-WIDGET] widgetLogoURL ', this.widgetLogoURL) + this.logger.log('[WIZARD - CONFIGURE-WIDGET] widgetLogoURL ', this.widgetLogoURL) } ngOnInit() { diff --git a/src/app/home-components/home-create-chatbot/home-create-chatbot.component.ts b/src/app/home-components/home-create-chatbot/home-create-chatbot.component.ts index 702a70020829..8f961f9e92d5 100644 --- a/src/app/home-components/home-create-chatbot/home-create-chatbot.component.ts +++ b/src/app/home-components/home-create-chatbot/home-create-chatbot.component.ts @@ -491,7 +491,7 @@ export class HomeCreateChatbotComponent extends PricingBaseComponent implements } createBlankTilebot() { - console.log('[HOME-CREATE-CHATBOT] createBlankTilebot chatBotCount ', this.countOfChatbots, ' chatBotLimit ', this.chatBotLimit, ' PROJECT PLAN ', this.profile_name) + this.logger.log('[HOME-CREATE-CHATBOT] createBlankTilebot chatBotCount ', this.countOfChatbots, ' chatBotLimit ', this.chatBotLimit, ' PROJECT PLAN ', this.profile_name) if (this.USER_ROLE !== 'agent') { diff --git a/src/app/integrations/integrations.component.ts b/src/app/integrations/integrations.component.ts index 63f72936e4e4..f0031f65f3ae 100644 --- a/src/app/integrations/integrations.component.ts +++ b/src/app/integrations/integrations.component.ts @@ -130,12 +130,12 @@ export class IntegrationsComponent implements OnInit, OnDestroy { this.customization = projectProfileData.customization; await this.getApps(); //this.manageTelegramVisibility(projectProfileData); - console.log("app retrieved") + this.logger.log("app retrieved") this.manageAppVisibility(projectProfileData) this.getIntegrations(); } }, (error) => { - console.error("err: ", error); + this.logger.error("err: ", error); }) } @@ -272,7 +272,7 @@ export class IntegrationsComponent implements OnInit, OnDestroy { resolve(true); }, (error) => { - console.error("--> error getting apps: ", error) + this.logger.error("--> error getting apps: ", error) }) }) } diff --git a/src/app/integrations/list/ext-integration/ext-integration.component.ts b/src/app/integrations/list/ext-integration/ext-integration.component.ts index 65dcc884613c..9e6daeb75bda 100644 --- a/src/app/integrations/list/ext-integration/ext-integration.component.ts +++ b/src/app/integrations/list/ext-integration/ext-integration.component.ts @@ -24,7 +24,7 @@ export class ExtIntegrationComponent implements OnInit { ) { } ngOnInit(): void { - console.log("Starting External App Integration"); + this.logger.log("Starting External App Integration"); } @@ -32,27 +32,27 @@ export class ExtIntegrationComponent implements OnInit { ngOnChanges(): void { this.showSpinner = true; - console.log("id_project: ", this.id_project); - console.log("renderUlr: ", this.renderUrl); + this.logger.log("id_project: ", this.id_project); + this.logger.log("renderUlr: ", this.renderUrl); this.auth.user_bs.subscribe((user) => { if (user) { this.TOKEN = user.token this.URL = this.sanitizer.bypassSecurityTrustResourceUrl(this.renderUrl + "?project_id=" + this.id_project + "&token=" + this.TOKEN); - console.log("URL: ", this.URL); + this.logger.log("URL: ", this.URL); //this.getIframeHasLoaded(); } else { - console.log("Get user token failed") + this.logger.log("Get user token failed") } }); } onIframeLoaded() { - console.log("onIframeLoaded") + this.logger.log("onIframeLoaded") this.showSpinner = false; } diff --git a/src/app/pricing/pricing-base/pricing-base.component.ts b/src/app/pricing/pricing-base/pricing-base.component.ts index f77887f6a2ec..b229f5729b78 100644 --- a/src/app/pricing/pricing-base/pricing-base.component.ts +++ b/src/app/pricing/pricing-base/pricing-base.component.ts @@ -186,10 +186,10 @@ export class PricingBaseComponent implements OnInit { // Chatbot limit // this.chatBotLimit = CHATBOT_MAX_NUM[PLAN_NAME.E] this.chatBotLimit = projectProfileData.profile_chatbots; - console.log('[P-BASE] - SANDBOX (TRIAL ACTIVE) - CHATBOTS LIMIT FROM DB ', this.chatBotLimit) + // console.log('[P-BASE] - SANDBOX (TRIAL ACTIVE) - CHATBOTS LIMIT FROM DB ', this.chatBotLimit) if (this.chatBotLimit === null || this.chatBotLimit === undefined) { this.chatBotLimit = CHATBOT_MAX_NUM[PLAN_NAME.E] - console.log('[P-BASE] - SANDBOX (TRIAL ACTIVE) - CHATBOTS DEFAULT LIMIT ', this.chatBotLimit) + // console.log('[P-BASE] - SANDBOX (TRIAL ACTIVE) - CHATBOTS DEFAULT LIMIT ', this.chatBotLimit) } this.tParamsPlanAndChatBot = { plan_name: this.prjct_profile_name, allowed_cb_num: this.chatBotLimit } @@ -198,10 +198,10 @@ export class PricingBaseComponent implements OnInit { // Kb contents Limit // this.kbLimit = KB_MAX_NUM[PLAN_NAME.E] this.kbLimit = projectProfileData.profile_kbs; - console.log('[P-BASE] - SANDBOX (TRIAL ACTIVE) - KB LIMIT FROM DB ', this.kbLimit) + // console.log('[P-BASE] - SANDBOX (TRIAL ACTIVE) - KB LIMIT FROM DB ', this.kbLimit) if (this.kbLimit === null || this.kbLimit === undefined) { this.kbLimit = KB_MAX_NUM[PLAN_NAME.E] - console.log('[P-BASE] - SANDBOX (TRIAL ACTIVE) - KB DEFAULT LIMIT ', this.kbLimit) + // console.log('[P-BASE] - SANDBOX (TRIAL ACTIVE) - KB DEFAULT LIMIT ', this.kbLimit) }