Skip to content

Commit

Permalink
fix logging again more
Browse files Browse the repository at this point in the history
  • Loading branch information
Ted Pearson committed Dec 11, 2021
1 parent 6368b84 commit 4ced4e0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,9 @@ func (app App) RunForecast(src string, loc Location) {
}

// write forecast
log.Printf(`Writing %d points to "%s" in InfluxDB for "%s"`, len(records.Values),
c.Forecast.MeasurementName, src)

log.Printf(`Writing %d points {loc:"%s", src:"%s", measurement:"%s"`, len(records.Values),
loc.Name, src, c.Forecast.MeasurementName)
err = app.writer.WriteMeasurements(
records.ToPoints(forecastOptions))
if err != nil {
Expand Down Expand Up @@ -160,7 +161,7 @@ func (app App) RunAstrocast(forecaster weather.Forecaster, options weather.Write
return
}
log.Printf(`Writing %d points {loc:"%s", src:"%s", measurement:"%s"`, len(events.Values),
options.MeasurementName, options.ForecastSource, options.Location)
options.Location, options.ForecastSource, options.MeasurementName)
err = app.writer.WriteMeasurements(events.ToPoints(options))
if err != nil {
log.Printf("%+v", err)
Expand Down

0 comments on commit 4ced4e0

Please sign in to comment.