Changeset 1425


Ignore:
Timestamp:
Aug 30, 2007 9:35:10 AM (17 years ago)
Author:
bennylp
Message:

Fixed ticket #365: couple of minor bugs with log decoration (thanks Thiago Paiva Flores)

Location:
pjproject/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pj/log.c

    r1405 r1425  
    103103    if (log_decor & PJ_LOG_HAS_MONTH) { 
    104104        *pre++ = '-'; 
    105         pre += pj_utoa_pad(ptime.mon, pre, 2, '0'); 
     105        pre += pj_utoa_pad(ptime.mon+1, pre, 2, '0'); 
    106106    } 
    107107    if (log_decor & PJ_LOG_HAS_DAY_OF_MON) { 
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_core.c

    r1417 r1425  
    437437    /* Redirect log function to ours */ 
    438438    pj_log_set_log_func( &log_writer ); 
     439 
     440    /* Set decor */ 
     441    pj_log_set_decor(pjsua_var.log_cfg.decor); 
    439442 
    440443    /* Close existing file, if any */ 
Note: See TracChangeset for help on using the changeset viewer.