diff options
author | rexxnor <rexxnor+gnunet@brief.li> | 2019-06-02 22:36:15 +0200 |
---|---|---|
committer | rexxnor <rexxnor+gnunet@brief.li> | 2019-06-02 22:36:15 +0200 |
commit | 340037e022ee1b76be1fdb02d7ed728bc57c049c (patch) | |
tree | 94aae53504c150b7f77e169233580a8f59ace4f8 /ascension | |
parent | 4014bd21f5e6d223654257715e50812ddf02939a (diff) | |
download | ascension-340037e022ee1b76be1fdb02d7ed728bc57c049c.tar.gz ascension-340037e022ee1b76be1fdb02d7ed728bc57c049c.zip |
added rrsetcount as a metric
Diffstat (limited to 'ascension')
-rw-r--r-- | ascension/ascension.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ascension/ascension.py b/ascension/ascension.py index da54ca4..9d74caa 100644 --- a/ascension/ascension.py +++ b/ascension/ascension.py | |||
@@ -102,6 +102,7 @@ class Ascender(): | |||
102 | self.flags = flags | 102 | self.flags = flags |
103 | self.minimum = int(minimum) | 103 | self.minimum = int(minimum) |
104 | self.subzonedict = dict() | 104 | self.subzonedict = dict() |
105 | self.rrsetcount = 0 | ||
105 | 106 | ||
106 | def bootstrap_zone(self) -> None: | 107 | def bootstrap_zone(self) -> None: |
107 | """ | 108 | """ |
@@ -273,6 +274,7 @@ class Ascender(): | |||
273 | 274 | ||
274 | # add recordline to gns and filter out empty lines | 275 | # add recordline to gns and filter out empty lines |
275 | if len(recordline) > 1: | 276 | if len(recordline) > 1: |
277 | self.rrsetcount += 1 | ||
276 | self.add_recordline_to_gns(recordline, | 278 | self.add_recordline_to_gns(recordline, |
277 | domain, | 279 | domain, |
278 | label) | 280 | label) |
@@ -779,6 +781,7 @@ def main(): | |||
779 | continue | 781 | continue |
780 | 782 | ||
781 | ascender.add_records_to_gns() | 783 | ascender.add_records_to_gns() |
784 | logging.info("Added %d RRSets", ascender.rrsetcount) | ||
782 | logging.info("Finished migration of the zone %s", ascender.domain) | 785 | logging.info("Finished migration of the zone %s", ascender.domain) |
783 | 786 | ||
784 | if __name__ == '__main__': | 787 | if __name__ == '__main__': |