Mercurial > hg > freeDiameter
diff libfdcore/cnxctx.c @ 1198:8c4dd4b693c6
Some cleanups in the traces
author | Sebastien Decugis <sdecugis@freediameter.net> |
---|---|
date | Thu, 13 Jun 2013 17:30:14 +0800 |
parents | 48759e3f7611 |
children | ce2b00dc86c1 |
line wrap: on
line diff
--- a/libfdcore/cnxctx.c Tue Jun 11 17:53:35 2013 +0800 +++ b/libfdcore/cnxctx.c Thu Jun 13 17:30:14 2013 +0800 @@ -292,11 +292,13 @@ fd_sa_sdump_numeric(sa_buf, sa); + LOG_D("Connecting to TCP %s...", sa_buf); + /* Create the socket and connect, which can take some time and/or fail */ { int ret = fd_tcp_client( &sock, sa, addrlen ); if (ret != 0) { - LOG_A("TCP connection to %s failed: %s", sa_buf, strerror(ret)); + LOG_D("TCP connection to %s failed: %s", sa_buf, strerror(ret)); return NULL; } } @@ -347,10 +349,12 @@ fd_sa_sdump_numeric(sa_buf, &((struct fd_endpoint *)(list->next))->sa); + LOG_D("Connecting to SCTP %s:%hu...", sa_buf, port); + { int ret = fd_sctp_client( &sock, no_ip6, port, list ); if (ret != 0) { - LOG_A("SCTP connection to [%s,...] failed: %s", sa_buf, strerror(ret)); + LOG_D("SCTP connection to [%s,...] failed: %s", sa_buf, strerror(ret)); return NULL; } }