aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKiran Kamineni <kiran.k.kamineni@intel.com>2019-05-20 15:25:50 -0700
committerKiran Kamineni <kiran.k.kamineni@intel.com>2019-05-20 15:26:46 -0700
commit2ef97138d3934e1286e737e6ba1ec5dcb1771261 (patch)
tree47a4a84820396e727cd5cf247d5dad1e2a91e95c /src
parentf0f575b6c0c66cdd82cdc5f17a54e02d445cd9a7 (diff)
Print error message for etcd connection failure
Error message during client creation needs to be printed. Issue-ID: MULTICLOUD-637 Change-Id: Ic3929ae774235133673032e35a2388d2e0b98d36 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
Diffstat (limited to 'src')
-rw-r--r--src/k8splugin/internal/utils.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/k8splugin/internal/utils.go b/src/k8splugin/internal/utils.go
index 681b1b52..1a1b8de7 100644
--- a/src/k8splugin/internal/utils.go
+++ b/src/k8splugin/internal/utils.go
@@ -88,7 +88,7 @@ func CheckDatabaseConnection() error {
}
err = db.NewEtcdClient(nil, c)
if err != nil {
- log.Printf("Etcd Client Initialization failed")
+ log.Printf("Etcd Client Initialization failed with error: %s", err.Error())
}
return nil
}