Merge lp://qastaging/~elopio/snapcraft/fix1476452-python_log into lp://qastaging/~snappy-dev/snapcraft/core
Proposed by
Leo Arias
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Michael Terry | ||||
Approved revision: | 112 | ||||
Merged at revision: | 110 | ||||
Proposed branch: | lp://qastaging/~elopio/snapcraft/fix1476452-python_log | ||||
Merge into: | lp://qastaging/~snappy-dev/snapcraft/core | ||||
Prerequisite: | lp://qastaging/~elopio/snapcraft/test_tmp_cwd | ||||
Diff against target: |
669 lines (+176/-69) 14 files modified
integration-tests/units/jobs.pxu (+4/-4) snapcraft/__init__.py (+14/-5) snapcraft/cmds.py (+9/-5) snapcraft/common.py (+0/-5) snapcraft/main.py (+8/-0) snapcraft/plugin.py (+8/-4) snapcraft/plugins/ant_project.py (+7/-2) snapcraft/plugins/copy.py (+5/-1) snapcraft/plugins/ubuntu.py (+10/-4) snapcraft/tests/test_cmds.py (+45/-8) snapcraft/tests/test_copy_plugin.py (+15/-8) snapcraft/tests/test_plugin.py (+17/-4) snapcraft/tests/test_yaml.py (+23/-14) snapcraft/yaml.py (+11/-5) |
||||
To merge this branch: | bzr merge lp://qastaging/~elopio/snapcraft/fix1476452-python_log | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Michael Terry (community) | Approve | ||
Michael Vogt (community) | Approve | ||
Review via email: mp+265354@code.qastaging.launchpad.net |
Commit message
Use the python logger.
Description of the change
The python logger is nice. I've just done the basic config to keep the previous behaviour, but there are many options. At some point we should add an extra handler to send the logs to a file.
By using this logger, now it becomes testable too. I've added some tests, but to add the rest I need to learn a little more about snapcraft.
To post a comment you must log in.
Thanks for this branch. I like it and code-wise it looks great, just two comments inline (which are the same) where a small comment might be helpful. I +1 on this branch but I will leave the top-approve to Mike.