add_hooks_info works, however, there seems certain limitation and something out of current design scope.
For example, check source_xorg.py, there is code flow like: if is_xorg_input_package(pkg): code a else: code b If I want to get log from code a and b, I need to use code like: report.add_hooks_info(None, srcpackage='xserver-xorg-input-evdev') report.add_hooks_info(None, srcpackage='xorg') It does not really work because, the pkg will be "Unknown" because the code get the source pkg from the report object, instead of srcpackage parameter. Even it works, other code the collect log will run twice, and the will make the code run longer. (Given we potentially want to add lots of packages, the duplicate log collected will increase.) -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to apport in Ubuntu. https://bugs.launchpad.net/bugs/1841157 Title: have /usr/bin/oem-getlogs in apport to collect all in one logs Status in Apport: New Status in OEM Priority Project: In Progress Status in apport package in Ubuntu: Fix Released Bug description: plan to use command like $ sudo oem-getlogs to collect all logs that oem project could need. To manage notifications about this bug go to: https://bugs.launchpad.net/apport/+bug/1841157/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp