VirtualBox

Ignore:
Timestamp:
May 8, 2008 1:43:21 PM (17 years ago)
Author:
vboxsync
Message:

Added a setErrorNoLog method and aLogIt argument to the core setError methods (defaults to true) so that we can get rid of the disturbing release log errors caused by the USB drop down menu in the GUI.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/VirtualBoxBase.cpp

    r8683 r8709  
    609609    HRESULT aResultCode, const GUID &aIID,
    610610    const Bstr &aComponent, const Bstr &aText,
    611     bool aWarning)
     611    bool aWarning, bool aLogIt)
    612612{
    613613    /* whether multi-error mode is turned on */
    614614    bool preserve = ((uintptr_t) RTTlsGet (MultiResult::sCounter)) > 0;
    615615
    616     LogRel (("ERROR [COM]: aRC=%Rhrc (%#08x) aIID={%RTuuid} aComponent={%ls} aText={%ls} "
    617              "aWarning=%RTbool, preserve=%RTbool\n",
    618              aResultCode, aResultCode, &aIID, aComponent.raw(), aText.raw(), aWarning,
    619              preserve));
     616    if (aLogIt)
     617        LogRel (("ERROR [COM]: aRC=%Rhrc (%#08x) aIID={%RTuuid} aComponent={%ls} aText={%ls} "
     618                 "aWarning=%RTbool, preserve=%RTbool\n",
     619                 aResultCode, aResultCode, &aIID, aComponent.raw(), aText.raw(), aWarning,
     620                 preserve));
    620621
    621622    /* these are mandatory, others -- not */
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