Hi Simon! On Tue, Sep 12, 2017 at 12:55:18PM +0200, Simon Frei wrote: > I just wasted a lot of time finding the cause for missing debug > statements on a debug build of digikam. The build uses cmake and the > following option to activate debug logging: > > -DCMAKE_BUILD_TYPE=debug > > For bug reporting, we are reliant on users to be able to run a debug > version (appimage) and provide us a log. Asking the user to remove this > config file adds another obstacle to get a useful report. > > What can we do at build time to get debug statements on the console no > matter what?
You can install a custom filter for your debug categories as described here: http://doc.qt.io/qt-5/qloggingcategory.html#installFilter Alternatively, tell your users to export QT_LOGGING_RULES="digikam.*=true", or ship a wrapper that runs digikam with this environment. -- Dmitry Shachnev
signature.asc
Description: PGP signature