web/data/cubicweb.log.js
author David Douard <david.douard@logilab.fr>
Fri, 02 Oct 2015 17:28:33 +0200
changeset 10650 28b3d39bcbc6
parent 7995 9a9f35ef418c
permissions -rw-r--r--
[statsd] fix the statsd logger (closes #7558147) socket.inet_pton's second argument is the ip, not a couple (ip, port)

// This contains template-specific javascript

function filterLog(domid, thresholdLevel) {
    var logLevels = ["Debug", "Info", "Warning", "Error", "Fatal"]
    var action = "hide";
    for (var idx = 0; idx < logLevels.length; idx++){
        var level = logLevels[idx];
        if (level === thresholdLevel){
            action = "show";
        }
        $('#'+domid+' .log' + level)[action]();
    }
}