Skip to content

Commit

Permalink
fix(events): log error instead of exit program when http request timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
MikaelVallenet committed May 30, 2023
1 parent f7daa48 commit e3023b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion go/pkg/pwes/event_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ func EventHandler(ctx context.Context, apiClient *pwapi.HTTPClient, timestamp *t
logger.Info("event handler started", zap.Time("timestamp", *timestamp), zap.Time("to", to))
res, err := apiClient.AdminListActivities(ctx, &pwapi.AdminListActivities_Input{Since: timestamp, To: &to, Limit: 1000})
if err != nil {
return errcode.TODO.Wrap(err)
logger.Error("unable to get activities", zap.Error(err))
return nil
}

activities := res.GetActivities()
Expand Down

0 comments on commit e3023b6

Please sign in to comment.