remove console logs

This commit is contained in:
Dan Percic 2021-09-28 16:53:13 +03:00
parent 4ffdb4e413
commit 2835c812a1

View File

@ -22,8 +22,6 @@ export abstract class GenericService<Entity> {
@Validate()
getAll<R = Entity>(modelPath = this._defaultModelPath): Observable<R[]> {
console.log(`GET request from ${this.constructor.name}`);
return this._http.get<R[]>(`/${encodeURI(modelPath)}`, {
headers: HeadersConfiguration.getHeaders({ contentType: false }),
observe: 'body'
@ -38,7 +36,6 @@ export abstract class GenericService<Entity> {
path += `/${encodeURIComponent(body)}`;
}
console.log(`DELETE request from ${this.constructor.name} with body `, body);
return this._http.delete(path, {
body: body,
params: this._queryParams(queryParams),
@ -53,8 +50,6 @@ export abstract class GenericService<Entity> {
modelPath = this._defaultModelPath,
queryParams?: List<QueryParam>
): Observable<R> {
console.log(`POST request from ${this.constructor.name} with body `, body);
console.log('To path ', `/${encodeURI(modelPath)}`);
return this._http.post<R>(`/${encodeURI(modelPath)}`, body, {
params: this._queryParams(queryParams),
headers: HeadersConfiguration.getHeaders(),
@ -70,8 +65,6 @@ export abstract class GenericService<Entity> {
): Observable<R> {
const entityPath = path.map(item => encodeURIComponent(item)).join('/');
console.log(`GET request from ${this.constructor.name} with path ${encodeURI(modelPath)}/${entityPath}`);
return this._http.get<R>(`/${encodeURI(modelPath)}/${entityPath}`, {
headers: HeadersConfiguration.getHeaders({ contentType: false }),
params: this._queryParams(queryParams),