Skip to content

Commit

Permalink
Merge pull request #29 from HumairAK/add_logs
Browse files Browse the repository at this point in the history
UPSTREAM: <carry>: chore: add meaningful logs to client initialization.
  • Loading branch information
HumairAK authored Mar 15, 2024
2 parents 2ccfe35 + a5ed709 commit 4244d12
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions backend/src/apiserver/client_manager/client_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,10 @@ func (c *ClientManager) Authenticators() []auth.Authenticator {

func (c *ClientManager) init() {
glog.Info("Initializing client manager")
glog.Info("Initializing DB client...")
db := InitDBClient(common.GetDurationConfig(initConnectionTimeout))
db.SetConnMaxLifetime(common.GetDurationConfig(dbConMaxLifeTime))

glog.Info("DB client initialized successfully")
// time
c.time = util.NewRealTime()

Expand All @@ -185,8 +186,9 @@ func (c *ClientManager) init() {
c.resourceReferenceStore = storage.NewResourceReferenceStore(db)
c.dBStatusStore = storage.NewDBStatusStore(db)
c.defaultExperimentStore = storage.NewDefaultExperimentStore(db)
glog.Info("Initializing Minio client...")
c.objectStore = initMinioClient(common.GetDurationConfig(initConnectionTimeout))

glog.Info("Minio client initialized successfully")
// Use default value of client QPS (5) & burst (10) defined in
// k8s.io/client-go/rest/config.go#RESTClientFor
clientParams := util.ClientParameters{
Expand Down

0 comments on commit 4244d12

Please sign in to comment.