File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
packages/db/src/impl/pouch Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ import CourseLookup from './courseLookupDB';
2727export class CoursesDB implements CoursesDBInterface {
2828 public async getCourseList ( ) : Promise < CourseConfig [ ] > {
2929 const crsList = await CourseLookup . allCourses ( ) ;
30- console . log ( `AllCourses: ${ crsList . map ( ( c ) => c . name ) } ` ) ;
30+ console . log ( `AllCourses: ${ crsList . map ( ( c ) => c . name + ', ' + c . _id + '\n\t' ) } ` ) ;
3131
3232 const cfgs = await Promise . all (
3333 crsList . map ( async ( c ) => {
@@ -36,6 +36,7 @@ export class CoursesDB implements CoursesDBInterface {
3636 console . log ( `Found cfg: ${ JSON . stringify ( cfg ) } ` ) ;
3737 return cfg ;
3838 } catch ( e ) {
39+ console . warn ( `Error fetching cfg for course ${ c . name } , ${ c . _id } : ${ e } ` ) ;
3940 return undefined ;
4041 }
4142 } )
You can’t perform that action at this time.
0 commit comments