Roxen.git / server / base_server / roxen.pike

version» Context lines:

Roxen.git/server/base_server/roxen.pike:3681:    (now >> 32) & 0xffff,    (now >> 48) & 0xffff,    clock_sequence,    hex_mac_address);   }      mapping(string:array(int)) error_log=([]);      // Write a string to the administration interface error log and to stderr.   void nwrite(string s, int|void perr, int|void errtype, -  object|void mod, object|void conf) +  object|void mod, object|void conf, bool|void skip_stderr)   {    int log_time = time(1);    string reference = (mod ? Roxen.get_modname(mod) : conf && conf->name) || "";    string log_index = sprintf("%d,%s,%s", errtype, reference, s);    if(!error_log[log_index])    error_log[log_index] = ({ log_time });    else    error_log[log_index] += ({ log_time });       if( mod )    {    if( mod->error_log )    mod->error_log[log_index] += ({ log_time });    }    if( conf )    {    if( conf->error_log )    conf->error_log[log_index] += ({ log_time });    }    -  if(errtype >= 1) +  if(errtype >= 1 && !skip_stderr)    report_debug( s );   }      protected BackgroundProcess hourly_maintenance_process;      protected void clean_error_log(mapping(string:array(int)) log,    mapping(string:int) cutoffs)   {    if (!log || !sizeof(log)) return;    foreach(cutoffs; string prefix; int cutoff) {