]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
resolved: actually make use of message ID when logging about failed DNSSEC validation
authorLennart Poettering <lennart@poettering.net>
Mon, 4 Jan 2016 19:25:55 +0000 (20:25 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 4 Jan 2016 19:25:55 +0000 (20:25 +0100)
src/resolve/resolved-dns-transaction.c

index f7671e070f067f06031e35dc76b580163289bc29..7df526ad43e1f1bdade13d1c3ebf47f164871dc1 100644 (file)
@@ -19,6 +19,8 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
+#include <sd-messages.h>
+
 #include "af-list.h"
 #include "alloc-util.h"
 #include "dns-domain.h"
@@ -237,6 +239,7 @@ void dns_transaction_complete(DnsTransaction *t, DnsTransactionState state) {
 
         if (state == DNS_TRANSACTION_DNSSEC_FAILED)
                 log_struct(LOG_NOTICE,
+                           LOG_MESSAGE_ID(SD_MESSAGE_DNSSEC_FAILURE),
                            LOG_MESSAGE("DNSSEC validation failed for question %s: %s", dns_transaction_key_string(t), dnssec_result_to_string(t->answer_dnssec_result)),
                            "DNS_TRANSACTION=%" PRIu16, t->id,
                            "DNS_QUESTION=%s", dns_transaction_key_string(t),