File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -189,7 +189,6 @@ func main() {
189189 if err1 != nil {
190190 return err1
191191 }
192- log .Println ("==================PLUGIN REGISTERED================" , info .Name ())
193192 elasticSearchMiddleware = append (elasticSearchMiddleware , mw ... )
194193 }
195194 } else if info .Name () == "elasticsearch.so" {
@@ -205,11 +204,9 @@ func main() {
205204 if err != nil {
206205 log .Fatal ("error loading plugins: " , err )
207206 }
208- log .Println ("==================PLUGIN REGISTERED================" , pluginName )
209207 elasticSearchMiddleware = append (elasticSearchMiddleware , mw ... )
210208 }
211209 }
212- log .Println ("==================ES MIDDLEWARE================" , elasticSearchMiddleware )
213210 LoadESPluginFromFile (router , elasticSearchPath , elasticSearchMiddleware )
214211 if err != nil {
215212 log .Fatal ("error loading plugins: " , err )
Original file line number Diff line number Diff line change 11package classify
22
33import (
4- "log"
54 "net/http"
65
76 "github.com/appbaseio/arc/middleware"
@@ -16,7 +15,6 @@ func Indices() middleware.Middleware {
1615
1716func indices (h http.HandlerFunc ) http.HandlerFunc {
1817 return func (w http.ResponseWriter , req * http.Request ) {
19- log .Println ("======================================MIDDLEWARE: CLASSIFY INDICES==================================" )
2018 indices := util .IndicesFromRequest (req )
2119
2220 ctx := index .NewContext (req .Context (), indices )
Original file line number Diff line number Diff line change @@ -57,7 +57,6 @@ func Limit() middleware.Middleware {
5757
5858func (rl * Ratelimiter ) rateLimit (h http.HandlerFunc ) http.HandlerFunc {
5959 return func (w http.ResponseWriter , req * http.Request ) {
60- log .Println ("======================================MIDDLEWARE: LIMIT==================================" )
6160 ctx := req .Context ()
6261
6362 reqCredential , err := credential .FromContext (ctx )
Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ func ACL() middleware.Middleware {
2222
2323func validateACL (h http.HandlerFunc ) http.HandlerFunc {
2424 return func (w http.ResponseWriter , req * http.Request ) {
25- log .Println ("======================================MIDDLEWARE: VALIDATE ACL==================================" )
2625 ctx := req .Context ()
2726
2827 errMsg := "an error occurred while validating request acl"
Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ func Category() middleware.Middleware {
2222
2323func validateCategory (h http.HandlerFunc ) http.HandlerFunc {
2424 return func (w http.ResponseWriter , req * http.Request ) {
25- log .Println ("======================================MIDDLEWARE: VALIDATE CATEGORY==================================" )
2625 ctx := req .Context ()
2726
2827 errMsg := "an error occurred while validating request category"
Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ func PermissionExpiry() middleware.Middleware {
1919
2020func validateExpiry (h http.HandlerFunc ) http.HandlerFunc {
2121 return func (w http.ResponseWriter , req * http.Request ) {
22- log .Println ("======================================MIDDLEWARE: PERMISSION EXPIRY==================================" )
2322 ctx := req .Context ()
2423
2524 reqCredential , err := credential .FromContext (ctx )
Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ func Indices() middleware.Middleware {
2222
2323func indices (h http.HandlerFunc ) http.HandlerFunc {
2424 return func (w http.ResponseWriter , req * http.Request ) {
25- log .Println ("======================================MIDDLEWARE: VALIDATE INDICES==================================" )
2625 ctx := req .Context ()
2726
2827 errMsg := "an error occurred while validating indices"
Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ func Operation() middleware.Middleware {
2222
2323func operation (h http.HandlerFunc ) http.HandlerFunc {
2424 return func (w http.ResponseWriter , req * http.Request ) {
25- log .Println ("======================================MIDDLEWARE: VALIDATE OPERATION==================================" )
2625 ctx := req .Context ()
2726
2827 errMsg := "an error occurred while validating request op"
Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ func Referers() middleware.Middleware {
2020
2121func referers (h http.HandlerFunc ) http.HandlerFunc {
2222 return func (w http.ResponseWriter , req * http.Request ) {
23- log .Println ("======================================MIDDLEWARE: VALIDATE REFERERS==================================" )
2423 ctx := req .Context ()
2524
2625 reqCredential , err := credential .FromContext (ctx )
Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ func Sources() middleware.Middleware {
2323
2424func sources (h http.HandlerFunc ) http.HandlerFunc {
2525 return func (w http.ResponseWriter , req * http.Request ) {
26- log .Println ("======================================MIDDLEWARE: VALIDATE SOURCES==================================" )
2726 ctx := req .Context ()
2827
2928 reqCredential , err := credential .FromContext (ctx )
You can’t perform that action at this time.
0 commit comments