Browse Source

Log test message error

Kailash Nadh 4 years ago
parent
commit
b420c31d33
1 changed files with 1 additions and 0 deletions
  1. 1 0
      cmd/campaigns.go

+ 1 - 0
cmd/campaigns.go

@@ -570,6 +570,7 @@ func handleTestCampaign(c echo.Context) error {
 	for _, s := range subs {
 	for _, s := range subs {
 		sub := s
 		sub := s
 		if err := sendTestMessage(sub, &camp, app); err != nil {
 		if err := sendTestMessage(sub, &camp, app); err != nil {
+			app.log.Printf("error sending test message: %v", err)
 			return echo.NewHTTPError(http.StatusInternalServerError,
 			return echo.NewHTTPError(http.StatusInternalServerError,
 				app.i18n.Ts("campaigns.errorSendTest", "error", err.Error()))
 				app.i18n.Ts("campaigns.errorSendTest", "error", err.Error()))
 		}
 		}