File tree 1 file changed +21
-8
lines changed
1 file changed +21
-8
lines changed Original file line number Diff line number Diff line change @@ -116,15 +116,28 @@ const createParseAndProcessFeed = (cfg) => {
116
116
feedEntity,
117
117
} , 'matching FeedEntity' )
118
118
119
- if ( feedEntity . trip_update ) {
120
- await matchTripUpdate ( feedEntity . trip_update , { now} )
121
- }
122
- if ( feedEntity . vehicle ) {
123
- await matchVehiclePosition ( feedEntity . vehicle )
124
- }
125
- if ( feedEntity . alert ) {
126
- await matchAlert ( feedEntity . alert )
119
+ try {
120
+ if ( feedEntity . trip_update ) {
121
+ await matchTripUpdate ( feedEntity . trip_update , { now} )
122
+ }
123
+ if ( feedEntity . vehicle ) {
124
+ await matchVehiclePosition ( feedEntity . vehicle )
125
+ }
126
+ if ( feedEntity . alert ) {
127
+ await matchAlert ( feedEntity . alert )
128
+ }
129
+ } catch ( err ) {
130
+ _logger . info ( {
131
+ ..._logCtx ,
132
+ error : err ,
133
+ feedEntitiesIdx,
134
+ } , 'failed to match FeedEntity' )
135
+ return ; // suppress errors, to let other parallel matchFeedEntity() calls keep running
127
136
}
137
+ _logger . trace ( {
138
+ ..._logCtx ,
139
+ feedEntitiesIdx,
140
+ } , 'successfully matched FeedEntity' )
128
141
}
129
142
130
143
return runConcurrenctly ( matchFeedEntity )
You can’t perform that action at this time.
0 commit comments