diff options
author | Martin Willi <martin@strongswan.org> | 2005-11-21 11:46:48 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2005-11-21 11:46:48 +0000 |
commit | 885608ffa9a01ed90ec1b99d8f5f62bfdc27815d (patch) | |
tree | 3e337a86207bc7d81167d8a466ba03fe46a3a57c /Source/charon/sender.c | |
parent | d17b6ea6b88517b68333bdce7ec5fc1057c256cb (diff) | |
download | strongswan-885608ffa9a01ed90ec1b99d8f5f62bfdc27815d.tar.bz2 strongswan-885608ffa9a01ed90ec1b99d8f5f62bfdc27815d.tar.xz |
- fixed logging
Diffstat (limited to 'Source/charon/sender.c')
-rw-r--r-- | Source/charon/sender.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/charon/sender.c b/Source/charon/sender.c index b841dff98..0d056afeb 100644 --- a/Source/charon/sender.c +++ b/Source/charon/sender.c @@ -73,7 +73,7 @@ static void sender_thread_function(private_sender_t * this) { while (global_send_queue->get(global_send_queue,¤t_packet) == SUCCESS) { - this->logger->log(this->logger, CONTROL, "got a packet, sending it"); + this->logger->log(this->logger, CONTROL|MORE, "got a packet, sending it"); status = global_socket->send(global_socket,current_packet); if (status != SUCCESS) { @@ -93,6 +93,8 @@ static status_t destroy(private_sender_t *this) pthread_cancel(this->assigned_thread); pthread_join(this->assigned_thread, NULL); + + global_logger_manager->destroy_logger(global_logger_manager, this->logger); allocator_free(this); return SUCCESS; @@ -105,7 +107,7 @@ sender_t * sender_create() this->public.destroy = (status_t(*)(sender_t*)) destroy; - this->logger = global_logger_manager->create_logger(global_logger_manager, SENDER_THREAD, NULL); + this->logger = global_logger_manager->create_logger(global_logger_manager, SENDER, NULL); if (this->logger == NULL) { allocator_free(this); |