Compare commits
2 Commits
a6a5fc14f0
...
56028ac479
Author | SHA1 | Date | |
---|---|---|---|
56028ac479 | |||
![]() |
de7567b0e6 |
@ -2,6 +2,7 @@ package routers
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"log"
|
||||
endpoints "monitoring/app/storage/clickhouse/tables"
|
||||
"net/http"
|
||||
)
|
||||
@ -16,6 +17,7 @@ func AddEndpointMetric (r *http.Request) (interface{}, int) {
|
||||
|
||||
err = endpoints.AddEndpointMetric(body)
|
||||
if err != nil {
|
||||
log.Printf(err.Error())
|
||||
return nil, http.StatusInternalServerError
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user