From 9058343df4089c4ef8b95af6e35abeda79fb771f Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Tue, 21 Aug 2018 11:31:08 +0200 Subject: [PATCH] Adding some logging --- lib/webhooks/r10k.py | 6 ++++++ 1 file changed, 6 insertions(+) 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' -- 2.39.5