diff --git a/models/campaign.go b/models/campaign.go index debca6ab..33714321 100644 --- a/models/campaign.go +++ b/models/campaign.go @@ -606,6 +606,7 @@ func PostCampaign(c *Campaign, uid int64) error { recipientIndex++ } } + log.Info("Successfuly posted campaign",c.Id) return tx.Commit().Error } @@ -635,6 +636,7 @@ func DeleteCampaign(id int64) error { if err != nil { log.Error(err) } + log.Info("Successfuly deleted campaign",id) return err } @@ -666,5 +668,6 @@ func CompleteCampaign(id int64, uid int64) error { if err != nil { log.Error(err) } + log.Info("Campaign",c.Id,"ended successfully") return err } diff --git a/models/template.go b/models/template.go index acf4c387..426ef581 100644 --- a/models/template.go +++ b/models/template.go @@ -141,6 +141,7 @@ func PostTemplate(t *Template) error { return err } } + log.Info("Successfuly posted template",t.Id) return nil } @@ -174,6 +175,7 @@ func PutTemplate(t *Template) error { log.Error(err) return err } + log.Info("Successfuly edited template",t.Id) return nil } @@ -193,5 +195,6 @@ func DeleteTemplate(id int64, uid int64) error { log.Error(err) return err } + log.Info("Successfuly deleted template",id) return nil }