You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sdap.apache.org by tl...@apache.org on 2020/08/04 20:21:59 UTC

[incubator-sdap-ingester] branch SDAP-267 updated: organize logs in operator

This is an automated email from the ASF dual-hosted git repository.

tloubrieu pushed a commit to branch SDAP-267
in repository https://gitbox.apache.org/repos/asf/incubator-sdap-ingester.git


The following commit(s) were added to refs/heads/SDAP-267 by this push:
     new c7d2145  organize logs in operator
c7d2145 is described below

commit c7d2145f1b8975373f7b14e0f34dbb45ddc4e442
Author: thomas loubrieu <th...@jpl.nasa.gov>
AuthorDate: Tue Aug 4 13:21:33 2020 -0700

    organize logs in operator
---
 config_operator/config_operator/main.py | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/config_operator/config_operator/main.py b/config_operator/config_operator/main.py
index 9980bc1..45d530f 100644
--- a/config_operator/config_operator/main.py
+++ b/config_operator/config_operator/main.py
@@ -38,11 +38,14 @@ def create_config_synchronizer(spec, namespace):
 
 @kopf.on.create('sdap.apache.org', 'v1', 'gitbasedconfigs')
 def create_fn(body, spec, **kwargs):
-    # Get info from Git Repo Config object
+    logger.info(f'sdap config operator creation')
+
     namespace = body['metadata']['namespace']
 
     msg = create_config_synchronizer(spec, namespace)
 
+    logger.info(f'sdap config operator created {msg}')
+
     return {'message': msg}
 
 
@@ -52,7 +55,7 @@ def update_fn(spec, status, namespace, **kwargs):
 
     msg = create_config_synchronizer(spec, namespace)
 
-    logger.info(f'sdap config operator update {msg}')
+    logger.info(f'sdap config operator updated {msg}')
 
     return {'message': msg}