Commit 92bee90c authored by Steven Allen's avatar Steven Allen

fix the error check when constructing UUIDs

Use the UUID if err *is* nil.
parent b905cf66
......@@ -32,7 +32,7 @@ func Error(e error) logging.Loggable {
func Uuid(key string) logging.Metadata {
ids := "#UUID-ERROR#"
if id, err := uuid.NewV4(); err != nil {
if id, err := uuid.NewV4(); err == nil {
ids = id.String()
}
return logging.Metadata{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment