Skip to content
This repository has been archived by the owner on Feb 18, 2021. It is now read-only.

Commit

Permalink
Add module tag to logs from metadata client (#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kiran RG authored Jul 20, 2017
1 parent 766d9cd commit 0602edb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions clients/metadata/metadata_cassandra.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,10 @@ func NewCassandraMetadataService(cfg configure.CommonMetadataConfig, log bark.Lo
log = bark.NewLoggerFromLogrus(logrus.StandardLogger())
}

lowCons, midCons, highCons := gocql.Two, gocql.Two, gocql.ParseConsistency(cfg.GetConsistency())
// use a minimum consistency of 'Two', so that reads from a recently added (non-current) cassandra
// host, does not result in inconsistent data.
lowCons, midCons := gocql.Two, gocql.Two
highCons := gocql.ParseConsistency(cfg.GetConsistency())

if highCons == gocql.One {

Expand Down Expand Up @@ -256,7 +259,7 @@ func NewCassandraMetadataService(cfg configure.CommonMetadataConfig, log bark.Lo
midConsLevel: midCons,
highConsLevel: highCons,
clusterName: clusterName,
log: log,
log: log.WithField(common.TagModule, `metadata`),
}, nil
}

Expand Down

0 comments on commit 0602edb

Please sign in to comment.