VirtualBox

Changeset 48307 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Sep 5, 2013 1:30:12 PM (11 years ago)
Author:
vboxsync
Message:

FE/Qt: Medium-enumerator: Some logging fixes.

File:
1 edited

Legend:

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

    r48301 r48307  
    100100    /* Get medium ID: */
    101101    QString strMediumID = medium.id();
    102     LogRel(("UIMediumEnumerator: Medium with ID={%s} created.\n", strMediumID.toAscii().constData()));
     102    LogRelFlow(("UIMediumEnumerator: Medium with ID={%s} created.\n", strMediumID.toAscii().constData()));
    103103
    104104    /* Make sure medium doesn't exists already: */
     
    116116    /* Get medium ID: */
    117117    QString strMediumID = medium.id();
    118     LogRel(("UIMediumEnumerator: Medium with ID={%s} updated.\n", strMediumID.toAscii().constData()));
     118    LogRelFlow(("UIMediumEnumerator: Medium with ID={%s} updated.\n", strMediumID.toAscii().constData()));
    119119
    120120    /* Make sure medium still exists: */
     
    130130void UIMediumEnumerator::deleteMedium(const QString &strMediumID)
    131131{
    132     LogRel(("UIMediumEnumerator: Medium with ID={%s} removed.\n", strMediumID.toAscii().constData()));
     132    LogRelFlow(("UIMediumEnumerator: Medium with ID={%s} removed.\n", strMediumID.toAscii().constData()));
    133133
    134134    /* Make sure medium still exists: */
     
    159159
    160160    /* Notify listener: */
    161     LogRel(("UIMediumEnumerator: Medium-enumeration started...\n"));
     161    LogRelFlow(("UIMediumEnumerator: Medium-enumeration started...\n"));
    162162    m_fMediumEnumerationInProgress = true;
    163163    emit sigMediumEnumerationStarted();
     
    171171void UIMediumEnumerator::sltHandleMachineUpdate(QString strMachineID)
    172172{
    173     LogRel(("Machine event received, ID = %s\n", strMachineID.toAscii().constData()));
     173    LogRelFlow(("UIMediumEnumerator: Machine event received, ID = %s\n", strMachineID.toAscii().constData()));
    174174
    175175    /* Compose a map of previous usage: */
     
    182182            oldUsage << strMediumID;
    183183    }
    184     LogRel(("Old usage: %s\n", oldUsage.join(", ").toAscii().constData()));
     184    LogRelFlow(("UIMediumEnumerator:  Old usage: %s\n", oldUsage.isEmpty() ? "<empty>" : oldUsage.join(", ").toAscii().constData()));
    185185
    186186    /* Compose a map of current usage: */
     
    201201        }
    202202    }
    203     LogRel(("New usage: %s\n", newUsage.join(", ").toAscii().constData()));
     203    LogRelFlow(("UIMediumEnumerator:  New usage: %s\n", newUsage.isEmpty() ? "<empty>" : newUsage.join(", ").toAscii().constData()));
    204204
    205205    /* Manipulations over the sets: */
     
    210210    QStringList excludedList = excludedSet.toList();
    211211    QStringList includedList = includedSet.toList();
    212     LogRel(("Excluded items of machine usage: %s\n", excludedList.join(", ").toAscii().constData()));
    213     LogRel(("Included items of machine usage: %s\n", includedList.join(", ").toAscii().constData()));
     212    if (!excludedList.isEmpty())
     213        LogRelFlow(("UIMediumEnumerator:  Items excluded from machine usage: %s\n", excludedList.join(", ").toAscii().constData()));
     214    if (!includedList.isEmpty())
     215        LogRelFlow(("UIMediumEnumerator:  Items included into machine usage: %s\n", includedList.join(", ").toAscii().constData()));
    214216
    215217    /* For each of excluded items: */
     
    244246    }
    245247
    246     LogRel(("Machine event processed, ID = %s\n", strMachineID.toAscii().constData()));
     248    LogRelFlow(("UIMediumEnumerator: Machine event processed, ID = %s\n", strMachineID.toAscii().constData()));
    247249}
    248250
     
    256258    UIMedium medium = pTask->data().value<UIMedium>();
    257259    QString strMediumID = medium.id();
    258     LogRel(("UIMediumEnumerator: Medium with ID={%s} enumerated.\n", strMediumID.toAscii().constData()));
     260    LogRelFlow(("UIMediumEnumerator: Medium with ID={%s} enumerated.\n", strMediumID.toAscii().constData()));
    259261
    260262    /* Delete task: */
     
    275277    {
    276278        /* Notify listener: */
    277         LogRel(("UIMediumEnumerator: Medium-enumeration finished!\n"));
     279        LogRelFlow(("UIMediumEnumerator: Medium-enumeration finished!\n"));
    278280        m_fMediumEnumerationInProgress = false;
    279281        emit sigMediumEnumerationFinished();
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