Navigation


Changeset 1321:8288982c63b7 in freeDiameter for libfdcore


Ignore:
Timestamp:
Oct 15, 2017, 9:59:46 PM (7 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Phase:
public
Message:

Log at different level if peer is closed after normal sequence or not

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libfdcore/p_psm.c

    r1320 r1321  
    886886       
    887887psm_end:
    888         LOG_E("%s: Going to ZOMBIE state (no more activity)", peer->p_hdr.info.pi_diamid);
     888        cur_state = fd_peer_getstate(peer);
     889        if ((cur_state == STATE_CLOSING) || (cur_state == STATE_CLOSING_GRACE)) {
     890                LOG_N("%s: Going to ZOMBIE state (no more activity) after normal shutdown", peer->p_hdr.info.pi_diamid);
     891        } else {
     892                LOG_E("%s: Going to ZOMBIE state (no more activity) after abnormal shutdown", peer->p_hdr.info.pi_diamid);
     893        }
    889894        fd_psm_cleanup(peer, 1);
    890895        TRACE_DEBUG(INFO, "'%s'\t-> 'STATE_ZOMBIE' (terminated)\t'%s'",
Note: See TracChangeset for help on using the changeset viewer.