File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed
src/read-models/shared-state Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -38,18 +38,14 @@ const pullNewEquipmentQuizResultsForSheet = async (
3838 timezone : string ,
3939 updateState : ( event : EventOfType < 'EquipmentTrainingQuizResult' > ) => void
4040) => {
41- logger . info ( 'Processing sheet %s' , sheet . name ) ;
41+ logger = logger . child ( { sheet_name : sheet . name } ) ;
42+ logger . info ( 'Processing sheet' ) ;
4243 for ( const [ rowStart , rowEnd ] of getChunkIndexes (
4344 2 , // 1-indexed and first row is headers.
4445 sheet . rowCount ,
4546 ROW_BATCH_SIZE
4647 ) ) {
47- logger . debug (
48- 'Pulling data for sheet %s rows %s to %s' ,
49- sheet . name ,
50- rowStart ,
51- rowEnd
52- ) ;
48+ logger . debug ( 'Pulling data for sheet rows %s to %s' , rowStart , rowEnd ) ;
5349
5450 const [ minCol , maxCol ] = columnBoundsRequired ( sheet ) ;
5551
@@ -65,7 +61,9 @@ const pullNewEquipmentQuizResultsForSheet = async (
6561 if ( E . isLeft ( data ) ) {
6662 logger . error (
6763 data . left ,
68- 'Failed to pull data for sheet %s rows %s to %s, skipping rest of sheet'
64+ 'Failed to pull data for sheet rows %s to %s, skipping rest of sheet' ,
65+ rowStart ,
66+ rowEnd
6967 ) ;
7068 return ;
7169 }
@@ -81,6 +79,7 @@ const pullNewEquipmentQuizResultsForSheet = async (
8179 ) ,
8280 RA . map ( updateState )
8381 ) ;
82+ logger . info ( 'Finished processing sheet' ) ;
8483 }
8584} ;
8685
You can’t perform that action at this time.
0 commit comments