Skip to content

Commit

Permalink
revert last change
Browse files Browse the repository at this point in the history
  • Loading branch information
8naama committed Aug 1, 2024
1 parent ba14cf0 commit a009cf4
Showing 1 changed file with 17 additions and 18 deletions.
35 changes: 17 additions & 18 deletions cfn-lambda/handler/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,27 +212,26 @@ func handleFirstInvocation() error {
return err
}

go func() {
added := make([]string, 0)
servicesToAdd := common.GetServices()
if servicesToAdd != nil {
newAdded, err := common.AddServices(sess, servicesToAdd)
added = append(added, newAdded...)
if err != nil {
sugLog.Error(err.Error())
}
added := make([]string, 0)
servicesToAdd := common.GetServices()
if servicesToAdd != nil {
newAdded, err := common.AddServices(sess, servicesToAdd)
added = append(added, newAdded...)
if err != nil {
sugLog.Error(err.Error())
}
}

pathsToAdd := common.GetCustomPaths()
if pathsToAdd != nil {
newAdded, err := common.AddCustom(sess, pathsToAdd, added)
added = append(added, newAdded...)
if err != nil {
sugLog.Error(err.Error())
}
pathsToAdd := common.GetCustomPaths()
if pathsToAdd != nil {
newAdded, err := common.AddCustom(sess, pathsToAdd, added)
added = append(added, newAdded...)
if err != nil {
sugLog.Error(err.Error())
}
}

sugLog.Info("Following these log groups: ", added)
}()
sugLog.Info("Following these log groups: ", added)

return nil
}

0 comments on commit a009cf4

Please sign in to comment.