diff --git a/src/app/bots/bot-create/bot-create.component.ts b/src/app/bots/bot-create/bot-create.component.ts index e32d22a21a85..af795f950255 100755 --- a/src/app/bots/bot-create/bot-create.component.ts +++ b/src/app/bots/bot-create/bot-create.component.ts @@ -35,7 +35,6 @@ import { ProjectPlanService } from 'app/services/project-plan.service'; import { UsersService } from 'app/services/users.service'; import { MatDialog } from '@angular/material/dialog'; import { ChatbotModalComponent } from '../bots-list/chatbot-modal/chatbot-modal.component'; -import { error } from 'console'; @Component({ selector: 'bot-create', @@ -305,7 +304,7 @@ export class BotCreateComponent extends PricingBaseComponent implements OnInit { this.logger.log('fileJsonToUpload CHATBOT', fileJsonToUpload); resolve(fileJsonToUpload) } catch (error) { - console.error('Error while parsing JSON:', error); + this.logger.error('Error while parsing JSON:', error); reject(error) } }; diff --git a/src/app/services/websocket/ws-requests.service.ts b/src/app/services/websocket/ws-requests.service.ts index 69583a910afe..d0a72d7bff02 100755 --- a/src/app/services/websocket/ws-requests.service.ts +++ b/src/app/services/websocket/ws-requests.service.ts @@ -1251,8 +1251,8 @@ export class WsRequestsService implements OnDestroy { // WS Requests NO-RT & HISTORY // ------------------------------------------------------------- public getHistoryAndNortRequests(operator: string, status: string, statuses, _preflight, querystring: string, pagenumber: number) { - console.log('[WS-REQUESTS-SERV][HISTORY & NORT-CONVS] - *** REQUESTS SERVICE Get REQUESTS - operator ', operator); - console.log('[WS-REQUESTS-SERV][HISTORY & NORT-CONVS] - *** REQUESTS SERVICE Get REQUEST - status ', status); + this.logger.log('[WS-REQUESTS-SERV][HISTORY & NORT-CONVS] - *** REQUESTS SERVICE Get REQUESTS - operator ', operator); + this.logger.log('[WS-REQUESTS-SERV][HISTORY & NORT-CONVS] - *** REQUESTS SERVICE Get REQUEST - status ', status); this.logger.log('[WS-REQUESTS-SERV][HISTORY & NORT-CONVS] - *** REQUESTS SERVICE Get REQUEST - statuses ', statuses); this.logger.log('[WS-REQUESTS-SERV][HISTORY & NORT-CONVS] - *** REQUESTS SERVICE Get REQUEST - statuses length ', statuses?.length); this.logger.log('[WS-REQUESTS-SERV][HISTORY & NORT-CONVS] - *** REQUESTS SERVICE Get REQUEST - querystring ', querystring); @@ -1268,30 +1268,30 @@ export class WsRequestsService implements OnDestroy { if (querystring && querystring !== undefined) { if (status === '100' || status === '200' || status === '1000' || status === '50' || status ==="1000,100,200" || status ==="100,150,200" || statuses?.length>0) { _querystring = '&' + querystring - console.log('[WS-REQUESTS-SERV][HISTORY & NORT-CONVS] - *** REQUESTS SERVICE HERE 1'); + this.logger.log('[WS-REQUESTS-SERV][HISTORY & NORT-CONVS] - *** REQUESTS SERVICE HERE 1'); } else if (status === 'all') { _querystring = querystring + '&' - console.log('[WS-REQUESTS-SERV][HISTORY & NORT-CONVS] - *** REQUESTS SERVICE HERE 2', _querystring); + this.logger.log('[WS-REQUESTS-SERV][HISTORY & NORT-CONVS] - *** REQUESTS SERVICE HERE 2', _querystring); } else { - console.log('[WS-REQUESTS-SERV][HISTORY & NORT-CONVS] - *** REQUESTS SERVICE HERE 3'); + this.logger.log('[WS-REQUESTS-SERV][HISTORY & NORT-CONVS] - *** REQUESTS SERVICE HERE 3'); } } else { _querystring = '' - console.log('[WS-REQUESTS-SERV][HISTORY & NORT-CONVS] - *** REQUESTS SERVICE HERE 4'); + this.logger.log('[WS-REQUESTS-SERV][HISTORY & NORT-CONVS] - *** REQUESTS SERVICE HERE 4'); } let url = ''; if (status !== 'all') { url = this.SERVER_BASE_PATH + this.project_id + '/requests?status' + operator + status + _querystring + '&page=' + pagenumber + '&no_populate=true&no_textscore=true&preflight='+ _preflight; - console.log('url status != all ' ,url ) + this.logger.log('url status != all ' ,url ) } else { url = this.SERVER_BASE_PATH + this.project_id + '/requests?' + _querystring + 'page=' + pagenumber + '&no_populate=true&no_textscore=true&preflight='+ _preflight; - console.log('url status all ' ,url ) + this.logger.log('url status all ' ,url ) } - // console.log('[WS-REQUESTS-SERV][HISTORY & NORT-CONVS] - GET REQUESTS URL ', url); + // this.logger.log('[WS-REQUESTS-SERV][HISTORY & NORT-CONVS] - GET REQUESTS URL ', url); const httpOptions = { headers: new HttpHeaders({ diff --git a/src/app/ws_requests/history-and-nort-convs/history-and-nort-convs.component.ts b/src/app/ws_requests/history-and-nort-convs/history-and-nort-convs.component.ts index bb708c5df595..596a0046f0f6 100755 --- a/src/app/ws_requests/history-and-nort-convs/history-and-nort-convs.component.ts +++ b/src/app/ws_requests/history-and-nort-convs/history-and-nort-convs.component.ts @@ -1366,10 +1366,10 @@ export class HistoryAndNortConvsComponent extends WsSharedComponent implements O // GET REQUEST COPY - START getRequests() { - console.log('getRequests queryString', this.queryString) + this.logger.log('getRequests queryString', this.queryString) // this.logger.log('getRequests _preflight' , this._preflight) - console.log('getRequests requests_statuses ' , this.requests_statuses) - console.log('getRequests requests_status ' , this.requests_status) + this.logger.log('getRequests requests_statuses ' , this.requests_statuses) + this.logger.log('getRequests requests_status ' , this.requests_status) this.showSpinner = true; let promise = new Promise((resolve, reject) => { diff --git a/src/app/ws_requests/ws-requests-msgs/ws-requests-msgs.component.ts b/src/app/ws_requests/ws-requests-msgs/ws-requests-msgs.component.ts index c33c94304245..fae9dd2832e3 100755 --- a/src/app/ws_requests/ws-requests-msgs/ws-requests-msgs.component.ts +++ b/src/app/ws_requests/ws-requests-msgs/ws-requests-msgs.component.ts @@ -5348,7 +5348,7 @@ export class WsRequestsMsgsComponent extends WsSharedComponent implements OnInit reader.readAsDataURL($event.target.files[0]) } else { - console.log('cannnnnnnn is fileeee') + this.logger.log('cannnnnnnn is fileeee') this.type = 'file' const reader = new FileReader() reader.onloadend = () => {