Author: Paolo Lulli <paolo@lulli.net>
Debug
server/rest/rest-metric.go | 1 +
diff --git a/server/rest/rest-metric.go b/server/rest/rest-metric.go index 6305c0bdce0d9caaf405e13bcab15b0c24706fac..500c87a5733d38e7616cf71f89cae5a2b3665be2 100644 --- a/server/rest/rest-metric.go +++ b/server/rest/rest-metric.go @@ -100,6 +100,7 @@ fromUnixTimeUTC := time.Unix(metric.From, 0) toUnixTimeUTC := time.Unix(metric.To, 0) fromInBytes, _ := fromUnixTimeUTC.UTC().MarshalText() toInBytes, _ := toUnixTimeUTC.UTC().MarshalText() + fmt.Printf("PASSING HERE, from %s to %s \n", fromInBytes, toInBytes) metricsPack = db.MetricsBetween(db.Session, clientCN, metric.Name, string(fromInBytes), string(toInBytes), 100) } c.IndentedJSON(http.StatusAccepted, gin.H{"ret": "OK", "data": metricsPack})