Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-65841

REG 5.10->dev/Linux: qDebug() is silent (debug builds)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.11.0 Alpha
    • Core: I/O
    • None
    • Kubuntu 17.10, g++ 7.2, developer build with -debug (only)

    Description

      With qtbase/dev at e0b769eeda4d564178dfc12ebcefbcbbf441bbae , it seems QLoggingCategory::defaultCategory()->isDebugEnabled() is false in 5.11 by default.

          std::cout << QLibraryInfo::build() << '\n';
      
          std::cout << "defaultCategory()->isDebugEnabled(): "
             << QLoggingCategory::defaultCategory()->isDebugEnabled()
             << " isWarningEnabled: " <<  QLoggingCategory::defaultCategory()->isWarningEnabled() << '\n';
          qDebug() << "qDebug (stream)";
          qDebug("%s", "qDebug (printf)");
          qWarning() << "qWarning";
          qInfo() << "qInfo";
      

      prints

      Running qtbug65841_511/qtbug65841
      Qt 5.11.0 (x86_64-little_endian-lp64 shared (dynamic) debug build; by GCC 7.2.0)
      defaultCategory()->isDebugEnabled(): 0 isWarningEnabled: 1
      qWarning
      qInfo
      
      Qt 5.10.0 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 5.3.1 20160406 (Red Hat 5.3.1-6))
      defaultCategory()->isDebugEnabled(): 1 isWarningEnabled: 1
      qDebug (stream)
      qDebug (printf)
      qWarning
      qInfo
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kkohne Kai Köhne
            kleint Friedemann Kleint
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes