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

UUID package improvements #792

Merged
merged 3 commits into from
Jul 31, 2015

Conversation

stevvooe
Copy link
Collaborator

To avoid errant log messages, we've disabled logging by default when uuid is having trouble accessing /dev/urandom. This also takes the work from #786 and incorporates the feedback.

This carries #784 and #786.

cc @jfrazelle @tiborvass @ibuildthecloud

ibuildthecloud and others added 2 commits July 30, 2015 09:47
Fixes distribution#782

Signed-off-by: Darren Shepherd <darren@rancher.com>
Signed-off-by: Stephen J Day <stephen.day@docker.com>
@@ -30,7 +29,7 @@ var (

// Loggerf can be used to override the default logging destination. Such
// log messages in this library should be logged at warning or higher.
Loggerf = log.Printf
Loggerf func(format string, args ...interface{}) = func(format string, args ...interface{}) {}
Copy link
Contributor

Choose a reason for hiding this comment

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

no need for type, it will infer from value

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixed.

@aaronlehmann
Copy link
Contributor

Do we need a check on whether Loggerf is nil in Generate, before it is used?

@tiborvass
Copy link
Contributor

@aaronlehmann +1

@stevvooe
Copy link
Collaborator Author

@aaronlehmann No, because it is initialized.

Signed-off-by: Stephen J Day <stephen.day@docker.com>
@tiborvass
Copy link
Contributor

LGTM

@aaronlehmann
Copy link
Contributor

Ah, missed the fact that Loggerf is initialized. LGTM.

stevvooe added a commit that referenced this pull request Jul 31, 2015
@stevvooe stevvooe merged commit ba5ab72 into distribution:master Jul 31, 2015
@stevvooe stevvooe deleted the uuid-package-improvements branch July 31, 2015 01:10
@stevvooe
Copy link
Collaborator Author

@tiborvass Are you going to update in docker/docker?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants