Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Logging] Enrich debug output with used ENVs #847

Open
Moep90 opened this issue Sep 8, 2022 · 3 comments
Open

[Logging] Enrich debug output with used ENVs #847

Moep90 opened this issue Sep 8, 2022 · 3 comments

Comments

@Moep90
Copy link
Contributor

Moep90 commented Sep 8, 2022

As I want to debug kapitan as ARGOCD Plugin, I (after 2.4) need to see the ENVS and their content in debug mode.

Therfore I'd like to dump every ENV + VALUE kapitan has loaded to stdout.

@ramaro any suggestion where it should be added?
My initial thought was to extend the logger.debug for all ref engines.

Current workaround:

$ python -c "import json, os;print(json.dumps(dict(os.environ)))"
@ramaro
Copy link
Member

ramaro commented Sep 9, 2022

Potentially somewhere after this line should be good https://github.com/kapicorp/kapitan/blob/master/kapitan/cli.py#L568

@github-actions
Copy link

github-actions bot commented Oct 6, 2023

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label Oct 6, 2023
@dav9
Copy link

dav9 commented Dec 8, 2023

@Moep90 I'm proposing this PR now: #1099, it will add support for setting all kinds of logger errors. Would it help?

@github-actions github-actions bot removed the Stale label May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants