From: Jane Sandberg Date: Wed, 27 Mar 2019 03:18:56 +0000 (-0700) Subject: be more conservative with console.log X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=143e8de8813c4dfc736f25b0287956b17a326c51;p=working%2FEvergreen.git be more conservative with console.log --- diff --git a/Open-ILS/src/eg2/src/app/staff/booking/create-reservation.component.ts b/Open-ILS/src/eg2/src/app/staff/booking/create-reservation.component.ts index 3563ad63d3..f48db2182e 100644 --- a/Open-ILS/src/eg2/src/app/staff/booking/create-reservation.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/booking/create-reservation.component.ts @@ -92,7 +92,7 @@ export class CreateReservationComponent implements OnInit { }).subscribe( a => { this.attributes.push(a); }, err => { - console.log(err); + console.debug(err); }, () => { this.fetchData('type', event.id); }); diff --git a/Open-ILS/src/eg2/src/app/staff/booking/manage-reservations.component.ts b/Open-ILS/src/eg2/src/app/staff/booking/manage-reservations.component.ts index 6f771d0e90..e067046a21 100644 --- a/Open-ILS/src/eg2/src/app/staff/booking/manage-reservations.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/booking/manage-reservations.component.ts @@ -58,7 +58,7 @@ export class ManageReservationsComponent implements OnInit { (resp) => { this.reservationsGrid.reloadGrid(); this.patronBarcode = resp.card().barcode(); }, - (err) => { console.log(err); } + (err) => { console.debug(err); } ); } else if (this.resourceBarcode) { this.selectedFilter = 'resource'; diff --git a/Open-ILS/src/eg2/src/app/staff/booking/pickup.component.ts b/Open-ILS/src/eg2/src/app/staff/booking/pickup.component.ts index 93246ab183..3ce44a093f 100644 --- a/Open-ILS/src/eg2/src/app/staff/booking/pickup.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/booking/pickup.component.ts @@ -57,7 +57,7 @@ export class PickupComponent implements OnInit { flesh_fields: {'au': ['card']} }).subscribe( (resp) => { this.patronBarcode = resp.card().barcode(); }, - (err) => { console.log(err); } + (err) => { console.debug(err); } ); }); @@ -113,7 +113,7 @@ export class PickupComponent implements OnInit { (success) => { this.readyGrid.reload(); this.pickedUpGrid.reloadGrid(); }, - (error) => { console.log(error); } + (error) => { console.debug(error); } )); }; this.store.getItem('eg.booking.pickup.ready.only_show_captured').then(onlyCaptured => { diff --git a/Open-ILS/src/eg2/src/app/staff/booking/reservations-grid.component.ts b/Open-ILS/src/eg2/src/app/staff/booking/reservations-grid.component.ts index ae2db485bb..6ab727f296 100644 --- a/Open-ILS/src/eg2/src/app/staff/booking/reservations-grid.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/booking/reservations-grid.component.ts @@ -133,8 +133,7 @@ export class ReservationsGridComponent implements OnInit { (res) => this.handleSuccessfulCancel(res), (err) => alert('ERR: ' + JSON.stringify(err)) ); - }, - dismissed => console.log('user cancelled')); + }); }; this.viewByPatron = (reservations: IdlObject[]) => { @@ -181,7 +180,7 @@ export class ReservationsGridComponent implements OnInit { {'patron_barcode': this.patronBarcode, 'reservation': reservation}) .pipe(tap( (success) => { this.grid.reload(); }, - (error) => { console.log(error); } + (error) => { console.debug(error); } )); }; }