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

JsonModuleExecute is extremely verbose when executing remote functions #60

Open
alfredodeza opened this issue Jan 20, 2021 · 0 comments

Comments

@alfredodeza
Copy link
Owner

This happens because process.check is used which logs the remote command at info level. The workaround is to set the level higher, but this would cause other useful information to be omitted.

The function docstring is logging at debug level for example. Not a good combination, and this output is overkill:

INFO:ADEZA:Running command: kubectl get pod -l component=api -n current -o name
DEBUG:ADEZA:trying to determine remote python executable with python3
INFO:ADEZA:Running command: kubectl exec -i -n current pod/current-anchore-engine-api-554689b88d-khhhv -- /bin/sh -c which python3
INFO:ADEZA:Running command: kubectl exec -i -n current pod/current-anchore-engine-api-554689b88d-khhhv -- /bin/sh -c /usr/bin/python3
INFO:ADEZA:Running command: kubectl exec -i -n current pod/current-anchore-engine-api-554689b88d-khhhv -- /bin/sh -c /usr/bin/python3
INFO:ADEZA:Running command: kubectl exec -i -n current pod/current-anchore-engine-api-554689b88d-khhhv -- /bin/sh -c /usr/bin/python3
INFO:ADEZA:Running command: kubectl exec -i -n current pod/current-anchore-engine-api-554689b88d-khhhv -- /bin/sh -c /usr/bin/python3
INFO:ADEZA:Running command: kubectl exec -i -n current pod/current-anchore-engine-api-554689b88d-khhhv -- /bin/sh -c /usr/bin/python3
INFO:ADEZA:Running command: kubectl exec -i -n current pod/current-anchore-engine-api-554689b88d-khhhv -- /bin/sh -c /usr/bin/python3
INFO:ADEZA:Running command: kubectl exec -i -n current pod/current-anchore-engine-api-554689b88d-khhhv -- /bin/sh -c /usr/bin/python3
INFO:ADEZA:Running command: kubectl exec -i -n current pod/current-anchore-engine-api-554689b88d-khhhv -- /bin/sh -c /usr/bin/python3
INFO:ADEZA:Running command: kubectl exec -i -n current pod/current-anchore-engine-api-554689b88d-khhhv -- /bin/sh -c /usr/bin/python3
INFO:ADEZA:Running command: kubectl exec -i -n current pod/current-anchore-engine-api-554689b88d-khhhv -- /bin/sh -c /usr/bin/python3
INFO:ADEZA:Running command: kubectl exec -i -n current pod/current-anchore-engine-api-554689b88d-khhhv -- /bin/sh -c /usr/bin/python3
INFO:ADEZA:Running command: kubectl exec -i -n current pod/current-anchore-engine-api-554689b88d-khhhv -- /bin/sh -c /usr/bin/python3
INFO:ADEZA:Running command: kubectl exec -i -n current pod/current-anchore-engine-api-554689b88d-khhhv -- /bin/sh -c /usr/bin/python3
INFO:ADEZA:Running command: kubectl exec -i -n current pod/current-anchore-engine-api-554689b88d-khhhv -- /bin/sh -c /usr/bin/python3
INFO:ADEZA:Running command: kubectl exec -i -n current pod/current-anchore-engine-api-554689b88d-khhhv -- /bin/sh -c /usr/bin/python3
INFO:ADEZA:Running command: kubectl exec -i -n current pod/current-anchore-engine-api-554689b88d-khhhv -- /bin/sh -c /usr/bin/python3
INFO:ADEZA:Running command: kubectl exec -i -n current pod/current-anchore-engine-api-554689b88d-khhhv -- /bin/sh -c /usr/bin/python3
INFO:ADEZA:Running command: kubectl exec -i -n current pod/current-anchore-engine-api-554689b88d-khhhv -- /bin/sh -c /usr/bin/python3
INFO:ADEZA:Running command: kubectl exec -i -n current pod/current-anchore-engine-api-554689b88d-khhhv -- /bin/sh -c /usr/bin/python3
INFO:ADEZA:Running command: kubectl exec -i -n current pod/current-anchore-engine-api-554689b88d-khhhv -- /bin/sh -c /usr/bin/python3
INFO:ADEZA:Running command: kubectl exec -i -n current pod/current-anchore-engine-api-554689b88d-khhhv -- /bin/sh -c /usr/bin/python3
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

1 participant