From 3fe68376ce94d1ca7354d68bae7d530a899b7b1c Mon Sep 17 00:00:00 2001 From: vmudadla Date: Wed, 31 Jul 2024 14:16:03 -0500 Subject: [PATCH] UPSTREAM: : Reworded logs to indicate non-critical issues and provide informational context Signed-off-by: vmudadla --- backend/src/apiserver/client/swf.go | 1 - backend/src/apiserver/main.go | 9 +++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/backend/src/apiserver/client/swf.go b/backend/src/apiserver/client/swf.go index 9197f1f2d9d..1fe21c09b74 100644 --- a/backend/src/apiserver/client/swf.go +++ b/backend/src/apiserver/client/swf.go @@ -61,7 +61,6 @@ func NewScheduledWorkflowClientOrFatal(initConnectionTimeout time.Duration, clie if err == nil { return swfClientInstance } - glog.Infof("(Expected when in cluster) Failed to create scheduled workflow client by out of cluster kubeconfig. Error: %v", err) glog.Infof("Starting to create scheduled workflow client by in cluster config.") b := backoff.NewExponentialBackOff() diff --git a/backend/src/apiserver/main.go b/backend/src/apiserver/main.go index 597144c873b..9e17ab42642 100644 --- a/backend/src/apiserver/main.go +++ b/backend/src/apiserver/main.go @@ -20,8 +20,6 @@ import ( "encoding/json" "flag" "fmt" - "github.com/kubeflow/pipelines/backend/src/apiserver/client" - "google.golang.org/grpc/credentials" "io" "io/ioutil" "math" @@ -32,6 +30,9 @@ import ( "strings" "time" + "github.com/kubeflow/pipelines/backend/src/apiserver/client" + "google.golang.org/grpc/credentials" + "github.com/fsnotify/fsnotify" "github.com/golang/glog" "github.com/gorilla/mux" @@ -98,13 +99,13 @@ func main() { ) err = loadSamples(resourceManager) if err != nil { - glog.Fatalf("Failed to load samples. Err: %v", err) + glog.Infof("Couldn't load optional pipeline samples: %v", err) } if !common.IsMultiUserMode() { _, err = resourceManager.CreateDefaultExperiment("") if err != nil { - glog.Fatalf("Failed to create default experiment. Err: %v", err) + glog.Infof("Couldn't create optional default experiment: %v", err) } }