- add a log for testing mapping-functionality
This commit is contained in:
parent
cf274de285
commit
fcab0071fe
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue