Browse Source

Use dedicated Checksum logger so that checksum is visible in --quiet mode

pull/1333/head
Ross McFarland 3 weeks ago
parent
commit
d91d63ebac
No known key found for this signature in database GPG Key ID: 943B179E15D3B22A
2 changed files with 8 additions and 2 deletions
  1. +4
    -0
      .changelog/be3a5f7895c84e7a829da3e9d57f8f99.md
  2. +4
    -2
      octodns/manager.py

+ 4
- 0
.changelog/be3a5f7895c84e7a829da3e9d57f8f99.md View File

@ -0,0 +1,4 @@
---
type: minor
---
Use dedicated Checksum logger so that checksum is visible in --quiet mode

+ 4
- 2
octodns/manager.py View File

@ -10,7 +10,7 @@ from importlib import import_module
from importlib.metadata import PackageNotFoundError
from importlib.metadata import version as module_version
from json import dumps
from logging import getLogger
from logging import INFO, getLogger
from re import compile as re_compile
from sys import stdout
@ -896,7 +896,9 @@ class Manager(object):
csum = sha256()
csum.update(data.encode('utf-8'))
computed_checksum = csum.hexdigest()
self.log.info('sync: checksum=%s', computed_checksum)
checksum_log = getLogger('Checksum')
checksum_log.setLevel(INFO)
checksum_log.info('checksum=%s', computed_checksum)
if not force:
self.log.debug('sync: checking safety')


Loading…
Cancel
Save