update\
This commit is contained in:
@@ -155,11 +155,6 @@ func Route(db *gorm.DB, mux *http.ServeMux) {
|
|||||||
}))
|
}))
|
||||||
|
|
||||||
mux.HandleFunc("/server-down-notification", middleware.ResponseTimeMiddleware(func(w http.ResponseWriter, r *http.Request) {
|
mux.HandleFunc("/server-down-notification", middleware.ResponseTimeMiddleware(func(w http.ResponseWriter, r *http.Request) {
|
||||||
if r.Method != http.MethodGet {
|
|
||||||
http.Error(w, "Method not allowed", http.StatusMethodNotAllowed)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
sessionID := helper.GenerateSessionID()
|
sessionID := helper.GenerateSessionID()
|
||||||
module := "SERVER DOWN NOTIFICATION"
|
module := "SERVER DOWN NOTIFICATION"
|
||||||
log.Printf("%+v %+v request %+v", sessionID, module, nil)
|
log.Printf("%+v %+v request %+v", sessionID, module, nil)
|
||||||
@@ -192,11 +187,6 @@ func Route(db *gorm.DB, mux *http.ServeMux) {
|
|||||||
}))
|
}))
|
||||||
|
|
||||||
mux.HandleFunc("/high-memory-notification", middleware.ResponseTimeMiddleware(func(w http.ResponseWriter, r *http.Request) {
|
mux.HandleFunc("/high-memory-notification", middleware.ResponseTimeMiddleware(func(w http.ResponseWriter, r *http.Request) {
|
||||||
if r.Method != http.MethodGet {
|
|
||||||
http.Error(w, "Method not allowed", http.StatusMethodNotAllowed)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
sessionID := helper.GenerateSessionID()
|
sessionID := helper.GenerateSessionID()
|
||||||
module := "HIGH MEMORY USAGE NOTIFICATION"
|
module := "HIGH MEMORY USAGE NOTIFICATION"
|
||||||
log.Printf("%+v %+v request %+v", sessionID, module, nil)
|
log.Printf("%+v %+v request %+v", sessionID, module, nil)
|
||||||
|
|||||||
Reference in New Issue
Block a user