add: priority = LOG_ERR;
context: Ns_PdLog(Ns_PdLogMsgType errtype, char *format,...){    va_list ap;    int     priority;    if (errtype == Trace) {        if (trace && tracefp != NULL) {            va_start(ap, format);            vfprintf(tracefp, format, ap);            va_end(ap);            /* maintain consistency with syslog below, which adds \n */            fprintf(tracefp, "\n");            fflush(tracefp);        }    } else {        int typeok = 1;        switch (errtype) {        case Error:            priority = LOG_ERR;            break;        case Notice:            priority = LOG_NOTICE;            break;        default:            typeok = 0;            syslog(LOG_ERR, "nspd: unknown error type: %d", errtype);            break;        }        if (typeok) {            char msgbuf[4096];            va_start(ap, format);            vsprintf(msgbuf, format, ap);            va_end(ap);            syslog(priority, msgbuf);        }    }}