yats.git

commit 7bb640238b6a957b474bbecc4e4ea20cc96f059f

Author: Paolo Lulli <paolo@lulli.net>

Debug

 server/rest/rest-metric.go | 2 ++


diff --git a/server/rest/rest-metric.go b/server/rest/rest-metric.go
index 500c87a5733d38e7616cf71f89cae5a2b3665be2..02ceb3d212d23e75cf3253798bd3576dd41780c6 100644
--- a/server/rest/rest-metric.go
+++ b/server/rest/rest-metric.go
@@ -13,6 +13,7 @@
 import (
 	"fmt"
 	"github.com/gin-gonic/gin"
+	"log"
 	"net/http"
 	"strconv"
 	"time"
@@ -101,6 +102,7 @@ 			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)
+			log.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})