feat(logging): added loging filters

This commit is contained in:
Torkel Ödegaard
2016-06-07 12:11:41 +02:00
parent 3dc7706c45
commit a02cf5beb7
6 changed files with 73 additions and 17 deletions
+4 -3
View File
@@ -20,6 +20,7 @@ import (
"time"
"github.com/grafana/grafana/pkg/metrics"
"github.com/grafana/grafana/pkg/setting"
"gopkg.in/macaron.v1"
)
@@ -40,9 +41,9 @@ func Logger() macaron.Handler {
status := rw.Status()
if status == 200 || status == 304 {
// if !setting.RouterLogging {
// return
// }
if !setting.RouterLogging {
return
}
}
if ctx, ok := c.Data["ctx"]; ok {