VirtualBox

Ignore:
Timestamp:
Nov 23, 2015 11:34:02 AM (9 years ago)
Author:
vboxsync
Message:

FE/Qt: Remove some excessive logging.

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/UIVMInfoDialog.cpp

    r57553 r58815  
    477477        setGeometry(m_geometry);
    478478#endif /* !Q_WS_MAC */
    479         LogRel(("GUI: UIVMInfoDialog: Geometry loaded to: Origin=%dx%d, Size=%dx%d\n",
    480                 m_geometry.x(), m_geometry.y(), m_geometry.width(), m_geometry.height()));
     479        LogRel2(("GUI: UIVMInfoDialog: Geometry loaded to: Origin=%dx%d, Size=%dx%d\n",
     480                 m_geometry.x(), m_geometry.y(), m_geometry.width(), m_geometry.height()));
    481481
    482482        /* Maximize (if necessary): */
     
    496496        gEDataManager->setInformationWindowGeometry(m_geometry, isMaximized(), vboxGlobal().managedVMUuid());
    497497#endif /* !Q_WS_MAC */
    498         LogRel(("GUI: UIVMInfoDialog: Geometry saved as: Origin=%dx%d, Size=%dx%d\n",
    499                 m_geometry.x(), m_geometry.y(), m_geometry.width(), m_geometry.height()));
     498        LogRel2(("GUI: UIVMInfoDialog: Geometry saved as: Origin=%dx%d, Size=%dx%d\n",
     499                 m_geometry.x(), m_geometry.y(), m_geometry.width(), m_geometry.height()));
    500500    }
    501501}
  • trunk/src/VBox/Frontends/VirtualBox/src/UIVMLogViewer.cpp

    r58646 r58815  
    10561056        setGeometry(m_geometry);
    10571057#endif /* !Q_WS_MAC */
    1058         LogRel(("GUI: UIVMLogViewer: Geometry loaded to: Origin=%dx%d, Size=%dx%d\n",
    1059                 m_geometry.x(), m_geometry.y(), m_geometry.width(), m_geometry.height()));
     1058        LogRel2(("GUI: UIVMLogViewer: Geometry loaded to: Origin=%dx%d, Size=%dx%d\n",
     1059                 m_geometry.x(), m_geometry.y(), m_geometry.width(), m_geometry.height()));
    10601060
    10611061        /* Maximize (if necessary): */
     
    10761076        gEDataManager->setLogWindowGeometry(saveGeometry, isMaximized());
    10771077#endif /* !Q_WS_MAC */
    1078         LogRel(("GUI: UIVMLogViewer: Geometry saved as: Origin=%dx%d, Size=%dx%d\n",
    1079                 saveGeometry.x(), saveGeometry.y(), saveGeometry.width(), saveGeometry.height()));
     1078        LogRel2(("GUI: UIVMLogViewer: Geometry saved as: Origin=%dx%d, Size=%dx%d\n",
     1079                 saveGeometry.x(), saveGeometry.y(), saveGeometry.width(), saveGeometry.height()));
    10801080    }
    10811081}
  • trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.cpp

    r58689 r58815  
    15621562        setGeometry(m_geometry);
    15631563#endif /* !Q_WS_MAC */
    1564         LogRel(("GUI: UIExtraDataManagerWindow: Geometry loaded to: Origin=%dx%d, Size=%dx%d\n",
    1565                 m_geometry.x(), m_geometry.y(), m_geometry.width(), m_geometry.height()));
     1564        LogRel2(("GUI: UIExtraDataManagerWindow: Geometry loaded to: Origin=%dx%d, Size=%dx%d\n",
     1565                 m_geometry.x(), m_geometry.y(), m_geometry.width(), m_geometry.height()));
    15661566
    15671567        /* Maximize (if necessary): */
     
    15911591        gEDataManager->setExtraDataManagerGeometry(m_geometry, isMaximized());
    15921592#endif /* !Q_WS_MAC */
    1593         LogRel(("GUI: UIExtraDataManagerWindow: Geometry saved as: Origin=%dx%d, Size=%dx%d\n",
    1594                 m_geometry.x(), m_geometry.y(), m_geometry.width(), m_geometry.height()));
     1593        LogRel2(("GUI: UIExtraDataManagerWindow: Geometry saved as: Origin=%dx%d, Size=%dx%d\n",
     1594                 m_geometry.x(), m_geometry.y(), m_geometry.width(), m_geometry.height()));
    15951595    }
    15961596}
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumEnumerator.cpp

    r57667 r58815  
    167167void UIMediumEnumerator::sltHandleMachineUpdate(QString strMachineID)
    168168{
    169     LogRel(("GUI: UIMediumEnumerator: Machine (or snapshot) event received, ID = %s\n",
    170             strMachineID.toAscii().constData()));
     169    LogRel2(("GUI: UIMediumEnumerator: Machine (or snapshot) event received, ID = %s\n",
     170             strMachineID.toAscii().constData()));
    171171
    172172    /* Gather previously used UIMedium IDs: */
    173173    QStringList previousUIMediumIDs;
    174174    calculateCachedUsage(strMachineID, previousUIMediumIDs, true /* take into account current state only */);
    175     LogRel(("GUI: UIMediumEnumerator:  Old usage: %s\n",
    176             previousUIMediumIDs.isEmpty() ? "<empty>" : previousUIMediumIDs.join(", ").toAscii().constData()));
     175    LogRel2(("GUI: UIMediumEnumerator:  Old usage: %s\n",
     176             previousUIMediumIDs.isEmpty() ? "<empty>" : previousUIMediumIDs.join(", ").toAscii().constData()));
    177177
    178178    /* Gather currently used CMediums and their IDs: */
     
    180180    QStringList currentCMediumIDs;
    181181    calculateActualUsage(strMachineID, currentCMediums, currentCMediumIDs, true /* take into account current state only */);
    182     LogRel(("GUI: UIMediumEnumerator:  New usage: %s\n",
    183             currentCMediumIDs.isEmpty() ? "<empty>" : currentCMediumIDs.join(", ").toAscii().constData()));
     182    LogRel2(("GUI: UIMediumEnumerator:  New usage: %s\n",
     183             currentCMediumIDs.isEmpty() ? "<empty>" : currentCMediumIDs.join(", ").toAscii().constData()));
    184184
    185185    /* Determine excluded mediums: */
     
    189189    const QStringList excludedUIMediumIDs = excludedSet.toList();
    190190    if (!excludedUIMediumIDs.isEmpty())
    191         LogRel(("GUI: UIMediumEnumerator:  Items excluded from usage: %s\n", excludedUIMediumIDs.join(", ").toAscii().constData()));
     191        LogRel2(("GUI: UIMediumEnumerator:  Items excluded from usage: %s\n", excludedUIMediumIDs.join(", ").toAscii().constData()));
    192192    if (!currentCMediumIDs.isEmpty())
    193         LogRel(("GUI: UIMediumEnumerator:  Items currently in usage: %s\n", currentCMediumIDs.join(", ").toAscii().constData()));
     193        LogRel2(("GUI: UIMediumEnumerator:  Items currently in usage: %s\n", currentCMediumIDs.join(", ").toAscii().constData()));
    194194
    195195    /* Update cache for excluded UIMediums: */
     
    199199    recacheFromActualUsage(currentCMediums, currentCMediumIDs);
    200200
    201     LogRel(("GUI: UIMediumEnumerator: Machine (or snapshot) event processed, ID = %s\n",
    202             strMachineID.toAscii().constData()));
     201    LogRel2(("GUI: UIMediumEnumerator: Machine (or snapshot) event processed, ID = %s\n",
     202             strMachineID.toAscii().constData()));
    203203}
    204204
    205205void UIMediumEnumerator::sltHandleMachineRegistration(QString strMachineID, bool fRegistered)
    206206{
    207     LogRel(("GUI: UIMediumEnumerator: Machine %s event received, ID = %s\n",
    208             fRegistered ? "registration" : "unregistration",
    209             strMachineID.toAscii().constData()));
     207    LogRel2(("GUI: UIMediumEnumerator: Machine %s event received, ID = %s\n",
     208             fRegistered ? "registration" : "unregistration",
     209             strMachineID.toAscii().constData()));
    210210
    211211    /* Machine was registered: */
     
    216216        QStringList currentCMediumIDs;
    217217        calculateActualUsage(strMachineID, currentCMediums, currentCMediumIDs, false /* take into account current state only */);
    218         LogRel(("GUI: UIMediumEnumerator:  New usage: %s\n",
    219                 currentCMediumIDs.isEmpty() ? "<empty>" : currentCMediumIDs.join(", ").toAscii().constData()));
     218        LogRel2(("GUI: UIMediumEnumerator:  New usage: %s\n",
     219                 currentCMediumIDs.isEmpty() ? "<empty>" : currentCMediumIDs.join(", ").toAscii().constData()));
    220220        /* Update cache with currently used CMediums: */
    221221        recacheFromActualUsage(currentCMediums, currentCMediumIDs);
     
    227227        QStringList previousUIMediumIDs;
    228228        calculateCachedUsage(strMachineID, previousUIMediumIDs, false /* take into account current state only */);
    229         LogRel(("GUI: UIMediumEnumerator:  Old usage: %s\n",
    230                 previousUIMediumIDs.isEmpty() ? "<empty>" : previousUIMediumIDs.join(", ").toAscii().constData()));
     229        LogRel2(("GUI: UIMediumEnumerator:  Old usage: %s\n",
     230                 previousUIMediumIDs.isEmpty() ? "<empty>" : previousUIMediumIDs.join(", ").toAscii().constData()));
    231231        /* Update cache for previously used UIMediums: */
    232232        recacheFromCachedUsage(previousUIMediumIDs);
    233233    }
    234234
    235     LogRel(("GUI: UIMediumEnumerator: Machine %s event processed, ID = %s\n",
    236             fRegistered ? "registration" : "unregistration",
    237             strMachineID.toAscii().constData()));
     235    LogRel2(("GUI: UIMediumEnumerator: Machine %s event processed, ID = %s\n",
     236             fRegistered ? "registration" : "unregistration",
     237             strMachineID.toAscii().constData()));
    238238}
    239239
    240240void UIMediumEnumerator::sltHandleSnapshotDeleted(QString strMachineID, QString strSnapshotID)
    241241{
    242     LogRel(("GUI: UIMediumEnumerator: Snapshot-deleted event received, Machine ID = {%s}, Snapshot ID = {%s}\n",
    243             strMachineID.toAscii().constData(), strSnapshotID.toAscii().constData()));
     242    LogRel2(("GUI: UIMediumEnumerator: Snapshot-deleted event received, Machine ID = {%s}, Snapshot ID = {%s}\n",
     243             strMachineID.toAscii().constData(), strSnapshotID.toAscii().constData()));
    244244
    245245    /* Gather previously used UIMedium IDs: */
    246246    QStringList previousUIMediumIDs;
    247247    calculateCachedUsage(strMachineID, previousUIMediumIDs, false /* take into account current state only */);
    248     LogRel(("GUI: UIMediumEnumerator:  Old usage: %s\n",
    249             previousUIMediumIDs.isEmpty() ? "<empty>" : previousUIMediumIDs.join(", ").toAscii().constData()));
     248    LogRel2(("GUI: UIMediumEnumerator:  Old usage: %s\n",
     249             previousUIMediumIDs.isEmpty() ? "<empty>" : previousUIMediumIDs.join(", ").toAscii().constData()));
    250250
    251251    /* Gather currently used CMediums and their IDs: */
     
    253253    QStringList currentCMediumIDs;
    254254    calculateActualUsage(strMachineID, currentCMediums, currentCMediumIDs, true /* take into account current state only */);
    255     LogRel(("GUI: UIMediumEnumerator:  New usage: %s\n",
    256             currentCMediumIDs.isEmpty() ? "<empty>" : currentCMediumIDs.join(", ").toAscii().constData()));
     255    LogRel2(("GUI: UIMediumEnumerator:  New usage: %s\n",
     256             currentCMediumIDs.isEmpty() ? "<empty>" : currentCMediumIDs.join(", ").toAscii().constData()));
    257257
    258258    /* Update everything: */
     
    260260    recacheFromActualUsage(currentCMediums, currentCMediumIDs);
    261261
    262     LogRel(("GUI: UIMediumEnumerator: Snapshot-deleted event processed, Machine ID = {%s}, Snapshot ID = {%s}\n",
    263             strMachineID.toAscii().constData(), strSnapshotID.toAscii().constData()));
     262    LogRel2(("GUI: UIMediumEnumerator: Snapshot-deleted event processed, Machine ID = {%s}, Snapshot ID = {%s}\n",
     263             strMachineID.toAscii().constData(), strSnapshotID.toAscii().constData()));
    264264}
    265265
     
    289289        /* Delete this medium: */
    290290        m_mediums.remove(strUIMediumKey);
    291         LogRel(("GUI: UIMediumEnumerator: Medium with key={%s} closed and deleted (after enumeration)\n", strUIMediumKey.toAscii().constData()));
     291        LogRel2(("GUI: UIMediumEnumerator: Medium with key={%s} closed and deleted (after enumeration)\n", strUIMediumKey.toAscii().constData()));
    292292
    293293        /* And notify listener about delete: */
     
    301301        m_mediums[strUIMediumID] = uimedium;
    302302        m_mediums[strUIMediumID].setKey(strUIMediumID);
    303         LogRel(("GUI: UIMediumEnumerator: Medium with key={%s} has it changed to {%s}\n", strUIMediumKey.toAscii().constData(),
     303        LogRel2(("GUI: UIMediumEnumerator: Medium with key={%s} has it changed to {%s}\n", strUIMediumKey.toAscii().constData(),
    304304                                                                                           strUIMediumID.toAscii().constData()));
    305305
     
    517517                /* Uncache corresponding UIMedium: */
    518518                m_mediums.remove(strMediumID);
    519                 LogRel(("GUI: UIMediumEnumerator:  Medium with key={%s} uncached\n", strMediumID.toAscii().constData()));
     519                LogRel2(("GUI: UIMediumEnumerator:  Medium with key={%s} uncached\n", strMediumID.toAscii().constData()));
    520520
    521521                /* And notify listeners: */
     
    546546            /* Cache created UIMedium: */
    547547            m_mediums.insert(strUIMediumKey, uimedium);
    548             LogRel(("GUI: UIMediumEnumerator:  Medium with key={%s} cached\n", strUIMediumKey.toAscii().constData()));
     548            LogRel2(("GUI: UIMediumEnumerator:  Medium with key={%s} cached\n", strUIMediumKey.toAscii().constData()));
    549549
    550550            /* And notify listeners: */
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineWindow.cpp

    r58142 r58815  
    622622    {
    623623        /* Redirect arrived notification: */
    624         LogRel(("UIMachineWindow::handleNativeNotification: Redirecting '%s' notification to corresponding machine-window...\n",
    625                 strNativeNotificationName.toAscii().constData()));
     624        LogRel2(("UIMachineWindow::handleNativeNotification: Redirecting '%s' notification to corresponding machine-window...\n",
     625                 strNativeNotificationName.toAscii().constData()));
    626626        pMachineWindow->handleNativeNotification(strNativeNotificationName);
    627627    }
     
    638638    {
    639639        /* Redirect arrived callback: */
    640         LogRel(("UIMachineWindow::handleStandardWindowButtonCallback: Redirecting callback for standard window button '%d' with option key '%d' to corresponding machine-window...\n",
    641                 (int)enmButtonType, (int)fWithOptionKey));
     640        LogRel2(("UIMachineWindow::handleStandardWindowButtonCallback: Redirecting callback for standard window button '%d' with option key '%d' to corresponding machine-window...\n",
     641                 (int)enmButtonType, (int)fWithOptionKey));
    642642        pMachineWindow->handleStandardWindowButtonCallback(enmButtonType, fWithOptionKey);
    643643    }
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineLogicFullscreen.cpp

    r57591 r58815  
    453453void UIMachineLogicFullscreen::sltHostScreenAvailableAreaChange()
    454454{
    455     LogRel(("GUI: UIMachineLogicFullscreen: Host-screen available-area change ignored\n"));
     455    LogRel2(("GUI: UIMachineLogicFullscreen: Host-screen available-area change ignored\n"));
    456456}
    457457
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIVMInformationDialog.cpp

    r58726 r58815  
    470470        setGeometry(m_geometry);
    471471#endif /* !Q_WS_MAC */
    472         LogRel(("GUI: UIVMInformationDialog: Geometry loaded to: Origin=%dx%d, Size=%dx%d\n",
    473                 m_geometry.x(), m_geometry.y(), m_geometry.width(), m_geometry.height()));
     472        LogRel2(("GUI: UIVMInformationDialog: Geometry loaded to: Origin=%dx%d, Size=%dx%d\n",
     473                 m_geometry.x(), m_geometry.y(), m_geometry.width(), m_geometry.height()));
    474474
    475475        /* Maximize (if necessary): */
     
    489489        gEDataManager->setInformationWindowGeometry(m_geometry, isMaximized(), vboxGlobal().managedVMUuid());
    490490#endif /* !Q_WS_MAC */
    491         LogRel(("GUI: UIVMInformationDialog: Geometry saved as: Origin=%dx%d, Size=%dx%d\n",
    492                 m_geometry.x(), m_geometry.y(), m_geometry.width(), m_geometry.height()));
     491        LogRel2(("GUI: UIVMInformationDialog: Geometry saved as: Origin=%dx%d, Size=%dx%d\n",
     492                 m_geometry.x(), m_geometry.y(), m_geometry.width(), m_geometry.height()));
    493493    }
    494494}
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.cpp

    r58286 r58815  
    16361636        setGeometry(m_geometry);
    16371637#endif /* !Q_WS_MAC */
    1638         LogRel(("GUI: UISelectorWindow: Geometry loaded to: Origin=%dx%d, Size=%dx%d\n",
    1639                 m_geometry.x(), m_geometry.y(), m_geometry.width(), m_geometry.height()));
     1638        LogRel2(("GUI: UISelectorWindow: Geometry loaded to: Origin=%dx%d, Size=%dx%d\n",
     1639                 m_geometry.x(), m_geometry.y(), m_geometry.width(), m_geometry.height()));
    16401640
    16411641        /* Maximize (if necessary): */
     
    16941694        gEDataManager->setSelectorWindowGeometry(m_geometry, isMaximized());
    16951695#endif /* !Q_WS_MAC */
    1696         LogRel(("GUI: UISelectorWindow: Geometry saved as: Origin=%dx%d, Size=%dx%d\n",
    1697                 m_geometry.x(), m_geometry.y(), m_geometry.width(), m_geometry.height()));
     1696        LogRel2(("GUI: UISelectorWindow: Geometry saved as: Origin=%dx%d, Size=%dx%d\n",
     1697                 m_geometry.x(), m_geometry.y(), m_geometry.width(), m_geometry.height()));
    16981698    }
    16991699}
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette