Merge lp:~harlowja/cloud-init/log-import-fail into lp:~cloud-init-dev/cloud-init/trunk
Proposed by
Joshua Harlow
Status: | Merged |
---|---|
Merged at revision: | 897 |
Proposed branch: | lp:~harlowja/cloud-init/log-import-fail |
Merge into: | lp:~cloud-init-dev/cloud-init/trunk |
Diff against target: |
23 lines (+4/-2) 1 file modified
cloudinit/importer.py (+4/-2) |
To merge this branch: | bzr merge lp:~harlowja/cloud-init/log-import-fail |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
cloud-init Commiters | Pending | ||
Review via email: mp+190225@code.launchpad.net |
Description of the change
Add a log message around import failures.
Since the import failure can be an expected failure do not log that failure at a WARNING level, but to start log it at a DEBUG level. This will help in figuring out why imports fail (if they ever do) for developer and cloud-init users. Previously it is hard to know if a module fails importing for a valid reason (not existent) or an invalid reason (the module exists but the module has a dependency which is not satisfied).
To post a comment you must log in.