diff --git a/field.go b/field.go index 7906750b5..54e82091d 100644 --- a/field.go +++ b/field.go @@ -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 diff --git a/index.go b/index.go index fb97ded2f..c0490601b 100644 --- a/index.go +++ b/index.go @@ -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"))