]> git.ipfire.org Git - thirdparty/knot-dns.git/commitdiff
dnssec: log the new serial after successful signing
authorDavid Vašek <david.vasek@nic.cz>
Thu, 21 Sep 2023 13:34:21 +0000 (15:34 +0200)
committerDavid Vašek <david.vasek@nic.cz>
Mon, 25 Sep 2023 08:15:02 +0000 (10:15 +0200)
src/knot/dnssec/zone-events.c

index 0079d9a23bd3f60d6752a5a6af730ee693744800..75933cf50c15de8597663fda44cf08ff1ae46063 100644 (file)
@@ -1,4 +1,4 @@
-/*  Copyright (C) 2022 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
+/*  Copyright (C) 2023 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
 
     This program is free software: you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -297,7 +297,8 @@ int knot_dnssec_zone_sign(zone_update_t *update,
                }
        }
 
-       log_zone_info(zone_name, "DNSSEC, successfully signed");
+       log_zone_info(zone_name, "DNSSEC, successfully signed, serial %u",
+                     zone_contents_serial(update->new_cont));
 
 done:
        if (result == KNOT_EOK) {
@@ -423,7 +424,8 @@ int knot_dnssec_sign_update(zone_update_t *update, conf_t *conf)
                }
        }
 
-       log_zone_info(zone_name, "DNSSEC, incrementally signed");
+       log_zone_info(zone_name, "DNSSEC, incrementally signed, serial %u",
+                     zone_contents_serial(update->new_cont));
 
 done:
        if (result == KNOT_EOK) {