From: Frank Brehm Date: Tue, 21 Aug 2018 09:31:08 +0000 (+0200) Subject: Adding some logging X-Git-Tag: 0.8.6^2~1 X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=9058343df4089c4ef8b95af6e35abeda79fb771f;p=pixelpark%2Fpuppetmaster-webhooks.git Adding some logging --- diff --git a/lib/webhooks/r10k.py b/lib/webhooks/r10k.py index bc6c49c..fdec7b8 100644 --- a/lib/webhooks/r10k.py +++ b/lib/webhooks/r10k.py @@ -280,6 +280,9 @@ class R10kHookApp(BaseHookApp): """Generates definitions for custom resource types using Puppet code for the given environment.""" + LOG.info("Generating Puppet types for env {!r} on {!r}.".format( + self.ref, self.puppetmaster_host)) + res = True cmd = [ @@ -313,6 +316,9 @@ class R10kHookApp(BaseHookApp): # ------------------------------------------------------------------------- def exec_r10k(self): + LOG.info("Deploying r10k environment {!r} on {!r}.".format( + self.ref, self.puppetmaster_host)) + res = True r10k_loglevel = 'info'