Skip to content

Commit

Permalink
Merge pull request #17 from SUSE-Enceladus/dup-log
Browse files Browse the repository at this point in the history
Drop logs for cache and csp-config functions
  • Loading branch information
rjschwei authored Oct 13, 2023
2 parents ae51814 + 5fefb8c commit 7fee566
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions csp_billing_adapter_local/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,6 @@ def get_cache(config: Config):
except (FileNotFoundError, JSONDecodeError):
cache = {}

log.info("Retrieved Cache Content: %s", cache)

return cache


Expand All @@ -97,8 +95,6 @@ def update_cache(config: Config, cache: dict, replace: bool):
with open(get_local_path(CACHE_FILE), 'w', encoding='utf-8') as f:
json.dump(cache, f)

log.info("Updated Cache Content: %s", cache)


@csp_billing_adapter.hookimpl(trylast=True)
def get_csp_config(config: Config):
Expand All @@ -109,8 +105,6 @@ def get_csp_config(config: Config):
except (FileNotFoundError, JSONDecodeError):
csp_config = {}

log.info("Retrieved CSP Config Content: %s", csp_config)

return csp_config


Expand All @@ -125,8 +119,6 @@ def update_csp_config(config: Config, csp_config: Config, replace: bool):
with open(get_local_path(CSP_CONFIG_FILE), 'w', encoding='utf-8') as f:
json.dump(csp_config, f)

log.info("Updated CSP Config Content: %s", csp_config)


@csp_billing_adapter.hookimpl(trylast=True)
def save_csp_config(
Expand Down

0 comments on commit 7fee566

Please sign in to comment.