added message id logging
authorMartin Willi <martin@strongswan.org>
Wed, 12 Jul 2006 14:06:25 +0000 (14:06 -0000)
committerMartin Willi <martin@strongswan.org>
Wed, 12 Jul 2006 14:06:25 +0000 (14:06 -0000)
src/charon/encoding/message.c

index d66a4cd..29a2103 100644 (file)
@@ -658,9 +658,10 @@ static status_t generate(private_message_t *this, crypter_t *crypter, signer_t*
        }
        
        build_payload_string(this, payload_names, sizeof(payload_names));
        }
        
        build_payload_string(this, payload_names, sizeof(payload_names));
-       this->logger->log(this->logger, CONTROL, "generating %s %s [%s]",
+       this->logger->log(this->logger, CONTROL, "generating %s %s (%d) [%s]",
                                          mapping_find(exchange_type_m,this->exchange_type),
                                          this->is_request ? "request" : "response",
                                          mapping_find(exchange_type_m,this->exchange_type),
                                          this->is_request ? "request" : "response",
+                                         this->message_id,
                                          payload_names);
        
        if (this->exchange_type == EXCHANGE_TYPE_UNDEFINED)
                                          payload_names);
        
        if (this->exchange_type == EXCHANGE_TYPE_UNDEFINED)
@@ -914,9 +915,10 @@ static status_t parse_body(private_message_t *this, crypter_t *crypter, signer_t
        }
        
        build_payload_string(this, payload_names, sizeof(payload_names));
        }
        
        build_payload_string(this, payload_names, sizeof(payload_names));
-       this->logger->log(this->logger, CONTROL, "parsed %s %s [%s]", 
+       this->logger->log(this->logger, CONTROL, "parsed %s %s (%d) [%s]", 
                                        mapping_find(exchange_type_m, this->exchange_type),
                                        this->is_request ? "request" : "response",
                                        mapping_find(exchange_type_m, this->exchange_type),
                                        this->is_request ? "request" : "response",
+                                       this->message_id,
                                        payload_names);
        
        return SUCCESS;
                                        payload_names);
        
        return SUCCESS;