Change in libosmo-sccp[master]: ss7: Log local and remote address set upon ASP restart

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

pespin gerrit-no-reply at lists.osmocom.org
Fri Oct 11 19:32:19 UTC 2019


pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmo-sccp/+/15786 )


Change subject: ss7: Log local and remote address set upon ASP restart
......................................................................

ss7: Log local and remote address set upon ASP restart

Change-Id: I35c2581923ed3e1f7aff6c137ddf356882bac621
---
M src/osmo_ss7.c
1 file changed, 6 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmo-sccp refs/changes/86/15786/1

diff --git a/src/osmo_ss7.c b/src/osmo_ss7.c
index e8a0646..4ca3d53 100644
--- a/src/osmo_ss7.c
+++ b/src/osmo_ss7.c
@@ -1282,9 +1282,13 @@
 {
 	int rc;
 	enum xua_asp_role role;
+	char bufloc[512], bufrem[512];
 
 	OSMO_ASSERT(ss7_initialized);
-	LOGSS7(asp->inst, LOGL_INFO, "Restarting ASP %s\n", asp->cfg.name);
+	osmo_ss7_asp_peer_snprintf(bufloc, sizeof(bufloc), &asp->cfg.local);
+	osmo_ss7_asp_peer_snprintf(bufrem, sizeof(bufrem), &asp->cfg.remote);
+	LOGSS7(asp->inst, LOGL_INFO, "Restarting ASP %s, %s ==> %s\n",
+	       asp->cfg.name, bufloc, bufrem);
 
 	if (!asp->cfg.is_server) {
 		/* We are in client mode now */
@@ -1317,7 +1321,7 @@
 		rc = osmo_stream_cli_open(asp->client);
 		if (rc < 0) {
 			LOGSS7(asp->inst, LOGL_ERROR, "Unable to open stream"
-				" client for ASP %s\n", asp->cfg.name);
+				" client for ASP %s, %s ==> %s\n", asp->cfg.name, bufloc, bufrem);
 			/* we don't return error in here because osmo_stream_cli_open()
 			   will continue to retry (due to timeout being explicitly set with
 			   osmo_stream_cli_set_reconnect_timeout() above) to connect so the error is transient */

-- 
To view, visit https://gerrit.osmocom.org/c/libosmo-sccp/+/15786
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-Change-Id: I35c2581923ed3e1f7aff6c137ddf356882bac621
Gerrit-Change-Number: 15786
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20191011/fcdec17e/attachment.htm>


More information about the gerrit-log mailing list