WEB-645 fix: replace console.log with Logger service (#3066)
This commit is contained in:
@@ -19,6 +19,7 @@ import { CentersService } from 'app/centers/centers.service';
|
||||
import { GroupsService } from 'app/groups/groups.service';
|
||||
import { Dates } from 'app/core/utils/dates';
|
||||
import { CollectionSheetData, JLGGroupData, MeetingFallCenter } from '../models/collection-sheet-data.model';
|
||||
import { Logger } from 'app/core/logger/logger.service';
|
||||
|
||||
@Component({
|
||||
selector: 'mifosx-collection-sheet',
|
||||
@@ -30,6 +31,7 @@ import { CollectionSheetData, JLGGroupData, MeetingFallCenter } from '../models/
|
||||
]
|
||||
})
|
||||
export class CollectionSheetComponent implements OnInit {
|
||||
private readonly log = new Logger('CollectionSheetComponent');
|
||||
private formBuilder = inject(UntypedFormBuilder);
|
||||
private centerService = inject(CentersService);
|
||||
private collectionsService = inject(CollectionsService);
|
||||
@@ -140,7 +142,7 @@ export class CollectionSheetComponent implements OnInit {
|
||||
this.collectionsService
|
||||
.generateCollectionSheetData(this.meetingFallCenters[0].id, payload)
|
||||
.subscribe((jlgGroupData: JLGGroupData) => {
|
||||
console.log(jlgGroupData);
|
||||
this.log.debug('JLG Group Data:', jlgGroupData);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user