Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the logs quieter #274

Merged
merged 3 commits into from
Sep 20, 2016
Merged

Make the logs quieter #274

merged 3 commits into from
Sep 20, 2016

Conversation

BrianHicks
Copy link
Contributor

Fixes #248

Copy link
Contributor

@rebeccaskinner rebeccaskinner left a comment

Choose a reason for hiding this comment

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

LGTM other than minor spelling errors and (possibly?) the error level for an authorization failure.

@@ -76,14 +76,14 @@ real happens.`,

verifyModules := viper.GetBool("verify-modules")
if !verifyModules {
clog.Warn("skipping module verfiction")
clog.Warn("skipping module verfication")
Copy link
Contributor

Choose a reason for hiding this comment

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

did you mean: "verification"?

@@ -53,12 +53,12 @@ not display healthy checks.`,

verifyModules := viper.GetBool("verify-modules")
if !verifyModules {
log.WithField("component", "client").Warn("skipping module verfiction")
log.WithField("component", "client").Warn("skipping module verfiaction")
Copy link
Contributor

Choose a reason for hiding this comment

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

"verification"

@@ -106,7 +106,7 @@ func (e *executor) Plan(in *pb.LoadRequest, stream pb.Executor_PlanServer) error
logger = logger.WithField("function", "executor.Plan")

if err := e.auth.authorize(ctx); err != nil {
logger.WithError(err).Info("authorization failed")
logger.WithError(err).Warning("authorization failed")
Copy link
Contributor

Choose a reason for hiding this comment

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

Is an authorization failure a Warning or an Error?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

On the server, it's a warning since a user failing authentication should be raised for audit purposes but it's a normal occurrence. It's (still) an error on the client side.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, that makes sense.

@BrianHicks
Copy link
Contributor Author

Made the spelling fixes, thanks for the catch @rebeccaskinner. I'll rebase after your next review :)

@BrianHicks BrianHicks force-pushed the feature/compact-logging branch from 5a025e5 to d66cfa1 Compare September 20, 2016 17:18
@BrianHicks
Copy link
Contributor Author

The lint errors here are due to sample output, which we maybe shouldn't change. They're in code blocks anyway, so I'm not sure what it's complaining about.

@rebeccaskinner rebeccaskinner merged commit b9b65d1 into master Sep 20, 2016
@rebeccaskinner rebeccaskinner deleted the feature/compact-logging branch September 20, 2016 17:26
@BrianHicks BrianHicks added this to the 0.2.0-beta2 milestone Sep 20, 2016
BrianHicks pushed a commit that referenced this pull request Dec 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants