Changeset 6081


Ignore:
Timestamp:
Sep 30, 2019 6:08:48 AM (12 months ago)
Author:
ming
Message:

Re #2210 (misc): Add doc and extra check for Endpoint::utilLogWrite(LogEntry?)

Location:
pjproject/trunk/pjsip
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/include/pjsua2/endpoint.hpp

    r6074 r6081  
    10981098    /** 
    10991099     * Write a log entry. 
     1100     * Application must implement its own custom LogWriter and 
     1101     * this function will then call the LogWriter::write() method. 
     1102     * Note that this function does not call PJSIP's internal 
     1103     * logging functionality. For that, you should use 
     1104     * utilLogWrite(prmLevel, prmSender, prmMsg) above. 
    11001105     * 
    11011106     * @param e                 The log entry. 
  • pjproject/trunk/pjsip/src/pjsua2/endpoint.cpp

    r6074 r6081  
    561561void Endpoint::utilLogWrite(LogEntry &entry) 
    562562{ 
     563    if (!writer) return; 
     564 
    563565    if (mainThreadOnly && pj_thread_this() != mainThread) { 
    564566        PendingLog *job = new PendingLog; 
Note: See TracChangeset for help on using the changeset viewer.