fix #9

Merged
emmatveev merged 1 commits from master into dev 2025-06-13 02:06:19 +03:00

View File

@ -2,6 +2,7 @@ package routers
import ( import (
"encoding/json" "encoding/json"
"log"
endpoints "monitoring/app/storage/clickhouse/tables" endpoints "monitoring/app/storage/clickhouse/tables"
"net/http" "net/http"
) )
@ -16,6 +17,7 @@ func AddEndpointMetric (r *http.Request) (interface{}, int) {
err = endpoints.AddEndpointMetric(body) err = endpoints.AddEndpointMetric(body)
if err != nil { if err != nil {
log.Printf(err.Error())
return nil, http.StatusInternalServerError return nil, http.StatusInternalServerError
} }