From: Frank Brehm Date: Tue, 7 Dec 2021 12:54:13 +0000 (+0100) Subject: Adding output X-Git-Tag: 0.4.1~5^2~17 X-Git-Url: https://git.uhu-banane.net/?a=commitdiff_plain;h=a6086a0831657a49352f913434c5d1fe8fe3f49a;p=pixelpark%2Fpp-admin-tools.git Adding output --- diff --git a/lib/pp_admintools/deploy_zones_from_pdns.py b/lib/pp_admintools/deploy_zones_from_pdns.py index 92bda0a..1c662ed 100644 --- a/lib/pp_admintools/deploy_zones_from_pdns.py +++ b/lib/pp_admintools/deploy_zones_from_pdns.py @@ -37,7 +37,7 @@ from .pidfile import PidFileError, PidFile from .xlate import XLATOR -__version__ = '0.7.0' +__version__ = '0.7.1' LOG = logging.getLogger(__name__) _ = XLATOR.gettext @@ -366,6 +366,9 @@ class PpDeployZonesApp(PpPDNSApplication): LOG.error(_("Unknown time zone: {!r}.").format(local_tz_name)) self.exit(6) + LOG.info(_("Starting: {}").format( + datetime.datetime.now(local_tz).strftime('%Y-%m-%d %H:%M:%S %Z'))) + try: self.pidfile.create() except PidFileError as e: