- add a log for testing mapping-functionality
authorMartin Willi <martin@strongswan.org>
Fri, 11 Nov 2005 12:27:06 +0000 (12:27 -0000)
committerMartin Willi <martin@strongswan.org>
Fri, 11 Nov 2005 12:27:06 +0000 (12:27 -0000)
Source/charon/parser.c

index b072bc2..b666379 100644 (file)
@@ -24,6 +24,7 @@
 #include <arpa/inet.h>
 
 #include "allocator.h"
+#include "definitions.h"
 #include "globals.h"
 #include "types.h"
 #include "parser.h"
@@ -126,6 +127,8 @@ static status_t parse_payload(private_parser_t *this, payload_type_t payload_typ
 {
        payload_info_t *payload_info = NULL;
        
+       this->logger->log(this->logger, CONTROL, "Parsing a %s payload", mapping_find(payload_type_t_mappings, payload_type));
+       
        /* find payload in null terminated list*/
        payload_info = *(this->payload_infos);
        while (payload_info)
@@ -398,7 +401,7 @@ parser_t *parser_create(payload_info_t **payload_infos)
                return NULL;
        }
        
-       global_logger_manager->get_logger(global_logger_manager,PARSER,&(this->logger),"");
+       global_logger_manager->get_logger(global_logger_manager,PARSER,&(this->logger), NULL);
        
        if (this->logger == NULL)
        {