From f308260d24d6889ec71c977a88dd956ef12f9bbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Mu=C3=9Fler?= Date: Wed, 20 Jan 2021 12:57:31 +0100 Subject: [PATCH] More logging, some logic change around errors. --- pkg/cluster/volumes.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pkg/cluster/volumes.go b/pkg/cluster/volumes.go index 4f87a13a7..4ab791013 100644 --- a/pkg/cluster/volumes.go +++ b/pkg/cluster/volumes.go @@ -35,11 +35,12 @@ func (c *Cluster) syncVolumes() error { err = c.populateVolumeMetaData() if err != nil { + c.logger.Errorf("populating EBS meta data failed, skipping potential adjustements: %v", err) - } - err = c.syncUnderlyingEBSVolume() - if err != nil { - + err = c.syncUnderlyingEBSVolume() + if err != nil { + c.logger.Errorf("errors occured during EBS volume adjustments: %v", err) + } } // resize pvc to adjust filesystem size until better K8s support @@ -71,7 +72,7 @@ func (c *Cluster) syncVolumes() error { } func (c *Cluster) syncUnderlyingEBSVolume() error { - c.logger.Infof("starting to sync EBS volume: type, iops, throughput and size") + c.logger.Infof("starting to sync EBS volumes: type, iops, throughput, and size") var err error