From f2fa15facf9b84d2bd164e9e105672d431f47c14 Mon Sep 17 00:00:00 2001 From: Ruakij Date: Mon, 2 Aug 2021 14:01:08 +0200 Subject: [PATCH] Adde filenames to log --- daemon.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon.py b/daemon.py index 9f6daf2..8a24ea9 100755 --- a/daemon.py +++ b/daemon.py @@ -146,12 +146,12 @@ def adaptZoneName(zone): return zone def dumpZoneData(zone, dumpFile): - log.debug(f'{zone} |\tDumping..') + log.debug(f"{zone} |\tDumping to '{dumpFile}'..") return os.system(f"dnscontrol get-zones --format=js --out={dumpFile} powerdns POWERDNS {zone}") ignoreLinesRexp = r"^\s*(var|D\(|DnsProvider\(|DefaultTTL\()" def adaptFileForRequire(zone, dumpFile): - log.debug(f'{zone} |\tRewriting file..') + log.debug(f"{zone} |\tRewriting file '{dumpFile}'..") with open(dumpFile, 'r') as fin: with open(f"{dumpFile}.tmp", 'r') as fout: