-
Notifications
You must be signed in to change notification settings - Fork 63
Downgrade info logs in clusterresource controller #89
Conversation
@@ -239,14 +239,14 @@ func (c *controller) syncNamespace(ctx context.Context, namespace NamespaceName, | |||
templateFileName := templateFile.Name() | |||
if filepath.Ext(templateFileName) != ".yaml" { | |||
// nothing to do. | |||
logger.Infof(ctx, "syncing namespace [%s]: ignoring unrecognized filetype [%s]", | |||
logger.Debugf(ctx, "syncing namespace [%s]: ignoring unrecognized filetype [%s]", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this not a warning? We are ignoring something?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not necessarily, we only look at yaml files (because of how kubernetes mounts configmaps with symlinks this was causing problems in the sandbox mode)
@@ -315,7 +315,7 @@ func (c *controller) syncNamespace(ctx context.Context, namespace NamespaceName, | |||
|
|||
if err != nil { | |||
c.metrics.TemplateUpdateErrors.Inc() | |||
logger.Infof(ctx, "Failed to update resource [%+v] in namespace [%s] with err :%v", | |||
logger.Warningf(ctx, "Failed to update resource [%+v] in namespace [%s] with err :%v", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
%+v
, maybe that is a problem?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how so?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we are dumping out the entire object, is that want you intend to do?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we're only dumping out the Kind
@katrogan if you think the intention matches the code, I am good to go with this. Ping me and we can approve it |
TL;DR
This change downgrades info logs in clusterresource controller to debug level to reduce its overall spamminess and address disk space pressure for docker-for-mac deployments.
Type
Are all requirements met?
Complete description
Tracking Issue
flyteorg/flyte#250
Follow-up issue
NA