Skip to content

Commit

Permalink
Removes log
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicola Lanzilotto committed Oct 28, 2024
1 parent df698a3 commit cd44e93
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 15 deletions.
3 changes: 1 addition & 2 deletions src/app/bots/bot-create/bot-create.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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)
}
};
Expand Down
18 changes: 9 additions & 9 deletions src/app/services/websocket/ws-requests.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = () => {
Expand Down

0 comments on commit cd44e93

Please sign in to comment.