Log the octoDNS version as part of Manager.__init__ info line

This commit is contained in:
Ross McFarland
2022-03-25 18:16:50 -07:00
parent 6b9a130c18
commit 6ab6124d72
2 changed files with 7 additions and 1 deletions
+4
View File
@@ -14,6 +14,10 @@
to do so, but weren't. There was an ordering before, but it was essentially
arbitrarily picked.
#### Stuff
* Manager includes the octoDNS version in its init log line
## v0.9.16 - 2022-03-04 - Manage the root of the problem
#### Noteworthy changes
+3 -1
View File
@@ -11,6 +11,7 @@ from os import environ
from sys import stdout
import logging
from . import __VERSION__
from .provider.base import BaseProvider
from .provider.plan import Plan
from .provider.yaml import SplitYamlProvider, YamlProvider
@@ -84,7 +85,8 @@ class Manager(object):
return len(plan.changes[0].record.zone.name) if plan.changes else 0
def __init__(self, config_file, max_workers=None, include_meta=False):
self.log.info('__init__: config_file=%s', config_file)
self.log.info('__init__: config_file=%s (octoDNS %s)', config_file,
__VERSION__)
# Read our config file
with open(config_file, 'r') as fh: