From f8be15f53ba11a55dab26a7200159160f1806a38 Mon Sep 17 00:00:00 2001 From: Andreas Steffen Date: Mon, 29 May 2006 07:11:50 +0000 Subject: [PATCH] changed to standard connection log output --- src/charon/sa/states/initiator_init.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/charon/sa/states/initiator_init.c b/src/charon/sa/states/initiator_init.c index 9636d8f66..4837ad1a1 100644 --- a/src/charon/sa/states/initiator_init.c +++ b/src/charon/sa/states/initiator_init.c @@ -119,9 +119,12 @@ static status_t initiate_connection (private_initiator_init_t *this, connection_ my_id = connection->get_my_id(connection); other_id = connection->get_other_id(connection); - this->logger->log(this->logger, CONTROL, "Initiating connection between %s (%s) - %s (%s)", - my_id->get_string(my_id), my_host->get_address(my_host), - other_id->get_string(other_id), other_host->get_address(other_host)); + this->logger->log(this->logger, CONTROL, "initiating connection \"%s\": %s[%s]...%s[%s]", + connection->get_name(connection), + my_host->get_address(my_host), + my_id->get_string(my_id), + other_host->get_address(other_host), + other_id->get_string(other_id)); this->ike_sa->set_connection(this->ike_sa, connection); @@ -129,7 +132,7 @@ static status_t initiate_connection (private_initiator_init_t *this, connection_ policy = charon->policies->get_policy(charon->policies, my_id, other_id); if (policy == NULL) { - this->logger->log(this->logger, ERROR | LEVEL1, "Could not get a policy for '%s - %s', aborting", + this->logger->log(this->logger, ERROR | LEVEL1, "could not get a policy for '%s...%s', aborting", my_id->get_string(my_id), other_id->get_string(other_id)); return DESTROY_ME; }