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

Show envs when run2 #802

Merged
merged 3 commits into from
Feb 17, 2019
Merged

Show envs when run2 #802

merged 3 commits into from
Feb 17, 2019

Conversation

maho
Copy link
Contributor

@maho maho commented Jan 26, 2019

When some command fails, it's good to know what envs was set, to be able to reproduce error.

Also few formatting changes forced by flake8

buildozer/__init__.py Outdated Show resolved Hide resolved
@AndreMiras
Copy link
Member

I think that makes sense, thank you @mahomahomaho
Just added a couple of comments, could you review?

Copy link
Contributor Author

@maho maho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, I just made changes. However, could someone test them, because I stopped using buildozer (in favour of pure p4a) so I cannot check them.

buildozer/__init__.py Outdated Show resolved Hide resolved
@AndreMiras
Copy link
Member

Thanks for taking another look. I just realised that yes that hardcoded number things was already in our code base 😅 I'll unit test some of it, refactor and probably merge your PR after further review

@AndreMiras AndreMiras mentioned this pull request Feb 17, 2019
@AndreMiras
Copy link
Member

I've created #831 to help with testing the logger before we can merge yours

Copy link
Member

@AndreMiras AndreMiras left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@AndreMiras AndreMiras merged commit 3b023a2 into kivy:master Feb 17, 2019
@@ -282,6 +296,7 @@ def cmd(self, command, **kwargs):
else:
self.debug('Run {0!r} ...'.format(command.split()[0]))
self.debug('Cwd {}'.format(kwargs.get('cwd')))
self.log_env(self.DEBUG, kwargs["env"])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that like should be removed.
I'm seeing it only now after using buildozer master for a while.
For instance during the auto accept license process, this log_env seems to be printing every time. We want it only after crashes, not for every command call

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've created a PR to remove that line #843

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

Successfully merging this pull request may close these issues.

2 participants