pike.git / lib / modules / Search.pmod / Utils.pmod

version» Context lines:

pike.git/lib/modules/Search.pmod/Utils.pmod:738:    int t2 = time();    if (t2 - t1 > 10) // More than 10 s is somewhat slow, report warning.    report_warning("Search log purge took %d s.\n", t2-t1);    }       //!    void log_event( int code, string type, void|string extra, void|int log_profile ) {    Sql.Sql db = get_db();    if(!db) return;    -  if(zero_type(log_profile)) +  if(undefinedp(log_profile))    log_profile = profile;       if(stderr_logging)    werror_event(code, type, extra, log_profile);       if(extra)    db->query("INSERT INTO eventlog (profile,code,type,extra) VALUES (%d,%d,%s,%s)",    log_profile, code, type, extra);    else    db->query("INSERT INTO eventlog (profile, code,type) VALUES (%d,%d,%s)",