D13732: Add debug output for all network requests

Ralf Habacker noreply at phabricator.kde.org
Wed Jun 27 17:37:40 UTC 2018


habacker added a comment.


  In D13732#283984 <https://phabricator.kde.org/D13732#283984>, @bruns wrote:
  
  > Actually, it does. You have to enable logging explicitly for the per default excluded levels:
  >  `org.kde.attica.debug=true`
  >
  > http://doc.qt.io/qt-5/qloggingcategory.html#configuring-categories
  >  http://doc.qt.io/qt-5/qloggingcategory.html#setFilterRules
  
  
  Thanks for this pointer. After looking at http://blog.qt.io/blog/2014/03/11/qt-weekly-1-categorized-logging/, which shows a an example for an application I got this working.
  
  In D13732#283648 <https://phabricator.kde.org/D13732#283648>, @leinir wrote:
  
  > Straight-up qDebug would cause quite a lot of spam... I'd be much happier if this was done using qCDebug (which is already used in other parts of the code, so just need to include attica_debug.h and swap for qDebug for qCDebug(ATTICA))
  
  
  Will fix that.
  
  BTW:You are aware, that there are still much usage of qDebug in attica code ?
  
    ~/src/attica> grep -rn qDebug\(\) | wc -l
  
  82

REPOSITORY
  R235 Attica

REVISION DETAIL
  https://phabricator.kde.org/D13732

To: habacker, leinir
Cc: bruns, kde-frameworks-devel, michaelh, ngraham
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20180627/84f6439a/attachment-0001.html>


More information about the Kde-frameworks-devel mailing list