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

Dump the user provided requirements.txt/pipfile into the verbose logs #660

Open
rahulrv1980 opened this issue Jun 1, 2018 · 5 comments
Open

Comments

@rahulrv1980
Copy link
Contributor

No description provided.

@rahulrv1980
Copy link
Contributor Author

I mean the contents of these file used to determine dependencies

@tejal29
Copy link
Contributor

tejal29 commented Jun 4, 2018

We can definitely log the contents of requirements.txt used in debug mode. Do you want it for debugging purpose?

@rahulrv1980
Copy link
Contributor Author

Yes, this is for debugging

@tejal29
Copy link
Contributor

tejal29 commented Jun 5, 2018

IIUC correctly, all you have to do is log the parsed pkg here

pkgs = self._parse_pipfile_pkgs()

pkgs = self._parse_pipfile_pkgs()
logging.debug("Pip Packages: {0}" .format(','.join(pkgs)))

If you only want the contents of Reuirement.txt, you can check the file name and add debug line here:

descriptor_contents = ctx.GetFile(descriptor)

@tejal29
Copy link
Contributor

tejal29 commented Jun 5, 2018

Please feel free to send a PR and i can help you get it in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants