Skip to content

Commit

Permalink
Update serverless-config.go
Browse files Browse the repository at this point in the history
  • Loading branch information
kavi-99 authored Sep 25, 2024
1 parent f7a13cb commit bb480af
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/setup/serverless-config.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,9 @@ func RemoveService(config *Configuration, path string) string {

// RemoveServerlessService removes a service that was deployed using the Serverless framework
func RemoveServerlessService(path string) string {
log.Infof(fmt.Sprintf("Removing Serverless service at %s", path))
// 25.09 update to correct syntax issue logrus
// log.Infof(fmt.Sprintf("Removing Serverless service at %s", path))
log.Infof("Removing Serverless service at %s", path)
slsRemoveCmd := exec.Command("sls", "remove")
slsRemoveCmd.Dir = path
slsRemoveCmdOutput := util.RunCommandAndLogWithRetries(slsRemoveCmd, 3)
Expand All @@ -330,7 +332,9 @@ func RemoveServerlessService(path string) string {

// RemoveServerlessServiceForcefully forcefully removes a service that was deployed using the Serverless framework
func RemoveServerlessServiceForcefully(path string) string {
log.Infof(fmt.Sprintf("Removing Serverless service at %s", path))
// 25.09 update to correct syntax issue logrus
// log.Infof(fmt.Sprintf("Removing Serverless service at %s", path))
log.Infof("Removing Serverless service at %s", path)
slsRemoveCmd := exec.Command("sls", "remove", "--force")
slsRemoveCmd.Dir = path
slsRemoveCmdOutput := util.RunCommandAndLogWithRetries(slsRemoveCmd, 3)
Expand Down Expand Up @@ -432,7 +436,9 @@ func RemoveAlibabaAllServices(path string, numSubExperiments int) []string {

// DeployService deploys the functions defined in the serverless.com file
func DeployService(path string) string {
log.Infof(fmt.Sprintf("Deploying service at %s", path))
// 25.09 update to correct syntax issue logrus
// log.Infof(fmt.Sprintf("Deploying service at %s", path))
log.Infof("Deploying service at %s", path)
slsDeployCmd := exec.Command("sls", "deploy")
slsDeployCmd.Dir = path
slsDeployMessage := util.RunCommandAndLogWithRetries(slsDeployCmd, 3)
Expand Down

0 comments on commit bb480af

Please sign in to comment.