Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Downgrade info logs in clusterresource controller #89

Merged
merged 1 commit into from
Apr 30, 2020

Conversation

katrogan
Copy link
Contributor

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

  • Bug Fix
  • Feature
  • Plugin

Are all requirements met?

  • Code completed
  • Smoke tested
  • Unit tests added
  • Code documentation added
  • Any pending items have an associated Issue

Complete description

Tracking Issue

flyteorg/flyte#250

Follow-up issue

NA

@@ -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]",
Copy link
Contributor

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?

Copy link
Contributor Author

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",
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how so?

Copy link
Contributor

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?

Copy link
Contributor Author

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

@kumare3
Copy link
Contributor

kumare3 commented Apr 25, 2020

@katrogan if you think the intention matches the code, I am good to go with this. Ping me and we can approve it

@katrogan katrogan merged commit 964ce6b into master Apr 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants