From bb480aff46b1d03f42d28e560501a06008b52ee9 Mon Sep 17 00:00:00 2001 From: Kavita Sriram <99139582+kavi-99@users.noreply.github.com> Date: Wed, 25 Sep 2024 17:31:47 +0800 Subject: [PATCH] Update serverless-config.go --- src/setup/serverless-config.go | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/setup/serverless-config.go b/src/setup/serverless-config.go index 8e567bbf..fdcead1f 100644 --- a/src/setup/serverless-config.go +++ b/src/setup/serverless-config.go @@ -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) @@ -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) @@ -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)