log on deleting node information

This commit is contained in:
Martin Geno 2016-11-29 00:15:32 +01:00
parent e060934c6c
commit 30e4fe3267

View File

@ -53,6 +53,7 @@ func New(config *models.Config) *DB {
func (db *DB) DeletePoints() { func (db *DB) DeletePoints() {
query := fmt.Sprintf("delete from %s where time < now() - %dm", MeasurementNode, db.config.Influxdb.DeleteTill) query := fmt.Sprintf("delete from %s where time < now() - %dm", MeasurementNode, db.config.Influxdb.DeleteTill)
log.Println("delete", MeasurementNode, "older than", db.config.Influxdb.DeleteTill, "minutes")
db.client.Query(client.NewQuery(query, db.config.Influxdb.Database, "m")) db.client.Query(client.NewQuery(query, db.config.Influxdb.Database, "m"))
} }