Merge ~rickwu4444/bugit:1945153-add-journalctl-if-system-freeze into bugit:master
Status: | Merged |
---|---|
Approved by: | Rick Wu |
Approved revision: | 78adec0997daeac008e1400b303300329b567c5c |
Merged at revision: | 59c242c90910dc2bd118f1e550f51ebb58463331 |
Proposed branch: | ~rickwu4444/bugit:1945153-add-journalctl-if-system-freeze |
Merge into: | bugit:master |
Diff against target: |
75 lines (+27/-5) 2 files modified
qabro/bug_assistant.py (+17/-0) qabro/ui.py (+10/-5) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Pierre Equoy | Approve | ||
StanleyHuang | Needs Information | ||
Doug Jacobs | Pending | ||
Vic Liu | Pending | ||
Review via email:
|
Commit message
Add attach journalctl kernel logs from last boot if issue is about system freeze.
Description of the change
Due to if journalctl has only one log, which is current boot. The return code of 'journalctl -b -1 -k' will be '0', but it will be empty value of 'stdout'. Check multiple conditions in if statement.
ceqa@ubuntu:~$ sudo journalctl --list-boots
0 f8ccbca4631d4bc
ceqa@ubuntu:~$ sudo journalctl -b -1 -k
Data from the specified boot (-1) is not available: No such boot ID in journal
ceqa@ubuntu:~$ echo $?
0
There was an error fetching revisions from git servers. Please try again in a few minutes. If the problem persists, contact Launchpad support.
A little suggestion inline. Thanks for implement this feature.