web/data/cubicweb.log.js
author Rémi Cardona <remi.cardona@logilab.fr>
Mon, 11 Feb 2013 11:26:08 +0100 (2013-02-11)
changeset 8702 d47089677d44
parent 7995 9a9f35ef418c
permissions -rw-r--r--
[dbapi] Stop shadowing exceptions in get_repository() (closes #2710515) Exceptions are already handled higher up in the stack so there's no reason to handle them here. Furthermore, non-ConnectionError exceptions would get hidden, making debugging harder.
// 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]();
    }
}