diff --git a/claims/claim-utils/service/claims.service.ts b/claims/claim-utils/service/claims.service.ts index 34f9d3ee..c2e0d157 100644 --- a/claims/claim-utils/service/claims.service.ts +++ b/claims/claim-utils/service/claims.service.ts @@ -17,7 +17,7 @@ export class ClaimsService { let key = url; return this.http.get(url, CustomOptions.getAuthOptions()) .map(request => request.json()) - .do(request => console.info("Get claims: offset = "+(size*(page-1)) + " limit ="+size )) + //.do(request => console.info("Get claims: offset = "+(size*(page-1)) + " limit ="+size )) .catch(this.handleError); } getClaims( size : number, page : number, keyword:string, sortby: string, descending: boolean, types: string, apiUrl:string):any { diff --git a/connect/userEmailPreferences/mailPrefs.service.ts b/connect/userEmailPreferences/mailPrefs.service.ts index 0144e779..cf8644e5 100644 --- a/connect/userEmailPreferences/mailPrefs.service.ts +++ b/connect/userEmailPreferences/mailPrefs.service.ts @@ -15,7 +15,7 @@ export class MailPrefsService { return this.http.get(url, CustomOptions.getAuthOptions()) .map(request => request.json()) - .do(request => console.info("Get user email preferences for communityId= "+communityId )); + //.do(request => console.info("Get user email preferences for communityId= "+communityId )); //.catch(this.handleError); } @@ -28,9 +28,9 @@ export class MailPrefsService { return this.http.get(url, CustomOptions.getAuthOptions()) //.timeoutWith(100, Observable.throw(response)) // goes to error //.timeoutWith(100, Observable.of(response)) // goes to - .do(request => console.info(request)) + //.do(request => console.info(request)) .map(request => request.json()) - .do(request => console.info("Get user email preferences for OpenAIRE" )); + //.do(request => console.info("Get user email preferences for OpenAIRE" )); //.catch(this.handleError); } @@ -38,12 +38,12 @@ export class MailPrefsService { let url = apiUrl +"users/notification/save"; let body = JSON.stringify( notification ); - console.warn('Json body: : '+body); + //console.warn('Json body: : '+body); let headers = new Headers({ 'Content-Type': 'application/json' }); let options = new RequestOptions({ headers: headers }); return this.http.post(url, body, CustomOptions.getAuthOptionsWithBody()) .map(res => res.json()) - .do(request => console.info("Insert Response:"+request.status) ); + //.do(request => console.info("Insert Response:"+request.status) ); //.catch(this.handleError); } diff --git a/landingPages/organization/organization.component.ts b/landingPages/organization/organization.component.ts index b7176334..6addd6a5 100644 --- a/landingPages/organization/organization.component.ts +++ b/landingPages/organization/organization.component.ts @@ -342,8 +342,8 @@ export class OrganizationComponent { console.log("Error downloading the file."); this.closeLoading(); this.confirmOpenCsvError(); - }, - () => console.log('Completed file download.')); + };/*, + () => console.log('Completed file download.'));*/ } private downloadPublicationsFile(funder: string, funderId:string, count:number){ @@ -442,8 +442,8 @@ export class OrganizationComponent { console.log("Error downloading the file."); this.closeLoading(); this.confirmOpenCsvError(); - }, - () => console.log('Completed file download.') + };/*, + () => console.log('Completed file download.')*/ ); } }, diff --git a/landingPages/project/project.component.ts b/landingPages/project/project.component.ts index a52188fd..bd1bc8bf 100644 --- a/landingPages/project/project.component.ts +++ b/landingPages/project/project.component.ts @@ -398,8 +398,8 @@ actionsAfterGettingProjectInfo(){ console.log("Error downloading the file."); this.closeLoading(); this.confirmOpenCsvError(); - }, - () => console.log('Completed file download.') + };/*, + () => console.log('Completed file download.')*/ ); } diff --git a/searchPages/searchUtils/searchDownload.component.ts b/searchPages/searchUtils/searchDownload.component.ts index 863e5c7f..1a45230e 100644 --- a/searchPages/searchUtils/searchDownload.component.ts +++ b/searchPages/searchUtils/searchDownload.component.ts @@ -124,11 +124,11 @@ export class SearchDownloadComponent { //newWindow.close(); this.closeLoading(); this.confirmOpenCsvError(); - }, + };/*, () => { console.log('Completed file download.'); //setTimeout(function(){ newWindow.close(); }, 500); - } + }*/ ); } diff --git a/utils/fetchEntitiesClasses/fetchDatasets.class.ts b/utils/fetchEntitiesClasses/fetchDatasets.class.ts index 84d8028d..3ac183f5 100644 --- a/utils/fetchEntitiesClasses/fetchDatasets.class.ts +++ b/utils/fetchEntitiesClasses/fetchDatasets.class.ts @@ -234,7 +234,7 @@ public getAggregatorResults(id:string, page: number, size: number, properties:En }, err => { console.log(err); - console.info("status: "+err.status); + //console.info("status: "+err.status); //TODO check erros (service not available, bad request) // if( ){ // this.searchUtils.status = ErrorCodes.ERROR; diff --git a/utils/fetchEntitiesClasses/fetchOrps.class.ts b/utils/fetchEntitiesClasses/fetchOrps.class.ts index 1967930c..3bc5b457 100644 --- a/utils/fetchEntitiesClasses/fetchOrps.class.ts +++ b/utils/fetchEntitiesClasses/fetchOrps.class.ts @@ -203,7 +203,7 @@ public getAggregatorResults(id:string, page: number, size: number, properties:En }, err => { console.log(err); - console.info("status: "+err.status); + //console.info("status: "+err.status); //TODO check erros (service not available, bad request) if(err.status == '404') { this.searchUtils.status = this.errorCodes.NOT_FOUND; diff --git a/utils/fetchEntitiesClasses/fetchSoftware.class.ts b/utils/fetchEntitiesClasses/fetchSoftware.class.ts index 30d0df7f..bb6ebcc2 100644 --- a/utils/fetchEntitiesClasses/fetchSoftware.class.ts +++ b/utils/fetchEntitiesClasses/fetchSoftware.class.ts @@ -233,7 +233,7 @@ public getAggregatorResults(id:string, page: number, size: number, properties:En }, err => { console.log(err); - console.info("status: "+err.status); + //console.info("status: "+err.status); //TODO check erros (service not available, bad request) // if( ){ // this.searchUtils.status = ErrorCodes.ERROR; diff --git a/utils/piwik/piwik.service.ts b/utils/piwik/piwik.service.ts index 50ecd851..09bf36cc 100644 --- a/utils/piwik/piwik.service.ts +++ b/utils/piwik/piwik.service.ts @@ -38,8 +38,8 @@ export class PiwikService { ((referrer != null && referrer.length > 0)?('&urlref='+StringUtils.URIEncode(referrer)):''); //console.log("Piwik - trackDownload: "+url); - return this.http.get( url) - .do(request => console.info("Piwik request completed" )); + return this.http.get( url); + //.do(request => console.info("Piwik request completed" )); } private getUserAgent(){ diff --git a/utils/piwik/previousRouteRecorder.guard.ts b/utils/piwik/previousRouteRecorder.guard.ts index ae62b524..528b6334 100644 --- a/utils/piwik/previousRouteRecorder.guard.ts +++ b/utils/piwik/previousRouteRecorder.guard.ts @@ -9,7 +9,7 @@ export class PreviousRouteRecorder implements CanDeactivate { } canDeactivate(component: any): Observable | boolean { if (typeof localStorage !== 'undefined') { - console.log("In PreviousRouteRecorder : "+this.router.url ); + //console.log("In PreviousRouteRecorder : "+this.router.url ); localStorage.setItem('previousRoute', this.router.url); } return true;