fix(pkg/logfile): use one instead of several logfiles for all measured values

This commit is contained in:
2019-06-26 23:36:01 +02:00
parent 072a902376
commit 3dae3e38be
10 changed files with 67 additions and 100 deletions

View File

@ -33,7 +33,7 @@ func Start(cnf *config.Configuration, cleanCacheInterval time.Duration, compress
ctx := context.Background()
childContext, cancel := context.WithCancel(ctx)
logfile := logfile.New(cnf.Device.TemperatureLogfile)
logfile := logfile.New(cnf.Device.Logfile)
measuredValuesCache := make([]types.MeasuredValue, 0)