Browse Source

display: silence some noisy log messages

Starting to get quite annoying. The original problems for which they
were added have probably been solved.
Vincent Lang 8 năm trước cách đây
mục cha
commit
5e4631eb27
2 tập tin đã thay đổi với 4 bổ sung4 xóa
  1. 2 2
      src/display/DisplayComponent.cpp
  2. 2 2
      src/display/win/DisplayManagerWin.cpp

+ 2 - 2
src/display/DisplayComponent.cpp

@@ -244,7 +244,7 @@ int DisplayComponent::getApplicationDisplay(bool silent)
   {
     if (!silent)
     {
-      QLOG_DEBUG() << "Looking for a display at:" << activeWindow->geometry()
+      QLOG_TRACE() << "Looking for a display at:" << activeWindow->geometry()
                    << "(center:" << activeWindow->geometry().center() << ")";
     }
     display = m_displayManager->getDisplayFromPoint(activeWindow->geometry().center());
@@ -252,7 +252,7 @@ int DisplayComponent::getApplicationDisplay(bool silent)
 
   if (!silent)
   {
-    QLOG_DEBUG() << "Display index:" << display;
+    QLOG_TRACE() << "Display index:" << display;
   }
   return display;
 }

+ 2 - 2
src/display/win/DisplayManagerWin.cpp

@@ -181,7 +181,7 @@ int DisplayManagerWin::getDisplayFromPoint(int x, int y)
     DEVMODEW modeInfo = {};
     modeInfo.dmSize = sizeof(modeInfo);
 
-    QLOG_DEBUG() << "Looking at display" << displayId << dispName;
+    QLOG_TRACE() << "Looking at display" << displayId << dispName;
 
     if (!EnumDisplaySettingsW((LPCWSTR)dispName.utf16(), ENUM_CURRENT_SETTINGS,
                               &modeInfo))
@@ -192,7 +192,7 @@ int DisplayManagerWin::getDisplayFromPoint(int x, int y)
     {
       QRect displayRect(modeInfo.dmPosition.x, modeInfo.dmPosition.y, modeInfo.dmPelsWidth,
                         modeInfo.dmPelsHeight);
-      QLOG_DEBUG() << "Position on virtual desktop:" << displayRect;
+      QLOG_TRACE() << "Position on virtual desktop:" << displayRect;
 
       if (displayRect.contains(x, y))
         return displayId;