diff options
author | Kiran Kamineni <kiran.k.kamineni@intel.com> | 2019-05-20 15:25:50 -0700 |
---|---|---|
committer | Kiran Kamineni <kiran.k.kamineni@intel.com> | 2019-05-20 15:26:46 -0700 |
commit | 2ef97138d3934e1286e737e6ba1ec5dcb1771261 (patch) | |
tree | 47a4a84820396e727cd5cf247d5dad1e2a91e95c | |
parent | f0f575b6c0c66cdd82cdc5f17a54e02d445cd9a7 (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>
-rw-r--r-- | src/k8splugin/internal/utils.go | 2 |
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 } |