Unexport Field.Logger

This commit is contained in:
Cody Soyland 2018-07-05 21:44:13 -05:00
parent 3faa51544a
commit 5d7cb33322
2 changed files with 4 additions and 4 deletions

View file

@ -72,7 +72,7 @@ type Field struct {
bsiGroups []*bsiGroup
Logger Logger
logger Logger
}
// FieldOption is a functional option type for pilosa.fieldOptions.
@ -166,7 +166,7 @@ func NewField(path, index, name string, opts FieldOption) (*Field, error) {
options: applyDefaultOptions(fo),
Logger: NopLogger,
logger: NopLogger,
}
return f, nil
}
@ -660,7 +660,7 @@ func (f *Field) createViewIfNotExistsBase(name string) (*view, bool, error) {
func (f *Field) newView(path, name string) *view {
view := newView(path, f.index, f.name, name, f.options.CacheSize)
view.cacheType = f.options.CacheType
view.logger = f.Logger
view.logger = f.logger
view.rowAttrStore = f.rowAttrStore
view.stats = f.Stats.WithTags(fmt.Sprintf("view:%s", name))
view.broadcaster = f.broadcaster

View file

@ -363,7 +363,7 @@ func (i *Index) newField(path, name string) (*Field, error) {
if err != nil {
return nil, err
}
f.Logger = i.logger
f.logger = i.logger
f.Stats = i.Stats.WithTags(fmt.Sprintf("field:%s", name))
f.broadcaster = i.broadcaster
f.rowAttrStore = i.newAttrStore(filepath.Join(f.path, ".data"))