[trunk]: Library + Explore: Remove unnecessary logs.

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@54778 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
konstantina.galouni 2019-02-14 10:44:30 +00:00
parent c6b84c171e
commit c96508cc15
10 changed files with 20 additions and 20 deletions

View File

@ -17,7 +17,7 @@ export class ClaimsService {
let key = url;
return this.http.get(url, CustomOptions.getAuthOptions())
.map(request => <any> 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 {

View File

@ -15,7 +15,7 @@ export class MailPrefsService {
return this.http.get(url, CustomOptions.getAuthOptions())
.map(request => <any> 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 => <any> 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);
}

View File

@ -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.')*/
);
}
},

View File

@ -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.')*/
);
}

View File

@ -124,11 +124,11 @@ export class SearchDownloadComponent {
//newWindow.close();
this.closeLoading();
this.confirmOpenCsvError();
},
};/*,
() => {
console.log('Completed file download.');
//setTimeout(function(){ newWindow.close(); }, 500);
}
}*/
);
}

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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(){

View File

@ -9,7 +9,7 @@ export class PreviousRouteRecorder implements CanDeactivate<any> {
}
canDeactivate(component: any): Observable<boolean> | 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;