Removes more Wild Cloud cruft.
This commit is contained in:
@@ -62,14 +62,8 @@ func RequestLoggingMiddleware(next http.Handler) http.Handler {
|
||||
|
||||
// Add route params if present
|
||||
vars := mux.Vars(r)
|
||||
if name := vars["name"]; name != "" {
|
||||
attrs = append(attrs, "instance", name)
|
||||
}
|
||||
if app := vars["app"]; app != "" {
|
||||
attrs = append(attrs, "app", app)
|
||||
}
|
||||
if node := vars["node"]; node != "" {
|
||||
attrs = append(attrs, "node", node)
|
||||
if domain := vars["domain"]; domain != "" {
|
||||
attrs = append(attrs, "domain", domain)
|
||||
}
|
||||
|
||||
if sw.status >= 400 {
|
||||
|
||||
Reference in New Issue
Block a user