Mercurial > hg > freeDiameter
changeset 1330:e7726fae1e7f
Log an error if going from open to suspect or closed
author | Thomas Klausner <tk@giga.or.at> |
---|---|
date | Mon, 27 Nov 2017 15:43:50 +0100 |
parents | 175f2eb883a0 |
children | 229ecec59ff5 b75556f40346 |
files | libfdcore/p_psm.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libfdcore/p_psm.c Mon Nov 27 15:27:31 2017 +0100 +++ b/libfdcore/p_psm.c Mon Nov 27 15:43:50 2017 +0100 @@ -281,7 +281,7 @@ if (old == new_state) return 0; - LOG(((old == STATE_OPEN) || (new_state == STATE_OPEN)) ? FD_LOG_NOTICE : FD_LOG_DEBUG, "'%s'\t-> '%s'\t'%s'", + LOG(((old == STATE_OPEN) || (new_state == STATE_OPEN)) ? ((new_state == STATE_SUSPECT || new_state == STATE_CLOSED) ? FD_LOG_ERROR : FD_LOG_NOTICE ): FD_LOG_DEBUG, "'%s'\t-> '%s'\t'%s'", STATE_STR(old), STATE_STR(new_state), peer->p_hdr.info.pi_diamid);