Ignore:
Timestamp:
Sep 18, 2011 2:59:56 PM (13 years ago)
Author:
bennylp
Message:

Modified the libraries to use the new log indentation feature re #1372

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip-simple/evsub.c

    r3553 r3753  
    579579              (int)sub->state_str.slen, 
    580580              sub->state_str.ptr)); 
     581    pj_log_push_indent(); 
    581582 
    582583    /* don't call the callback with NULL event, it may crash the app! */ 
     
    596597        } 
    597598    } 
     599 
     600    pj_log_pop_indent(); 
    598601} 
    599602 
     
    628631 
    629632            PJ_LOG(5,(sub->obj_name, "Refreshing subscription.")); 
     633            pj_log_push_indent(); 
    630634            status = pjsip_evsub_initiate(sub, NULL,  
    631635                                          sub->expires->ivalue, 
     
    633637            if (status == PJ_SUCCESS) 
    634638                pjsip_evsub_send_request(sub, tdata); 
     639 
     640            pj_log_pop_indent(); 
    635641        } 
    636642        break; 
     
    646652            PJ_LOG(5,(sub->obj_name, "Timeout waiting for refresh. " 
    647653                                     "Sending NOTIFY to terminate.")); 
     654            pj_log_push_indent(); 
    648655            status = pjsip_evsub_notify( sub, PJSIP_EVSUB_STATE_TERMINATED,  
    649656                                         NULL, &STR_TIMEOUT, &tdata); 
    650657            if (status == PJ_SUCCESS) 
    651658                pjsip_evsub_send_request(sub, tdata); 
     659 
     660            pj_log_pop_indent(); 
    652661        } 
    653662        break; 
     
    659668            PJ_LOG(5,(sub->obj_name, "Timeout waiting for final NOTIFY. " 
    660669                                     "Terminating..")); 
     670            pj_log_push_indent(); 
    661671            set_state(sub, PJSIP_EVSUB_STATE_TERMINATED, NULL, NULL,  
    662672                      &timeout); 
     673            pj_log_pop_indent(); 
    663674        } 
    664675        break; 
     
    673684                     "send non-2xx response for previous NOTIFY). " 
    674685                     "Unsubscribing..")); 
     686            pj_log_push_indent(); 
    675687            status = pjsip_evsub_initiate( sub, NULL, 0, &tdata); 
    676688            if (status == PJ_SUCCESS) 
    677689                pjsip_evsub_send_request(sub, tdata); 
     690 
     691            pj_log_pop_indent(); 
    678692        } 
    679693        break; 
Note: See TracChangeset for help on using the changeset viewer.