Changeset 47589 in vbox
- Timestamp:
- Aug 7, 2013 1:27:03 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/SystemPropertiesImpl.cpp
r47587 r47589 680 680 else 681 681 { 682 LogRel(("Cannot set passed logging level=% s, or the default one - Error=%Rrc \n", aLoggingLevel, rc));682 LogRel(("Cannot set passed logging level=%ls, or the default one - Error=%Rrc \n", aLoggingLevel, rc)); 683 683 } 684 684 … … 1284 1284 HRESULT SystemProperties::setLoggingLevel(const Utf8Str &aLoggingLevel) 1285 1285 { 1286 HRESULTrc = S_OK;1286 int rc = S_OK; 1287 1287 Utf8Str useLoggingLevel(aLoggingLevel); 1288 1288 rc = RTLogGroupSettings(RTLogRelDefaultInstance(), useLoggingLevel.c_str()); 1289 1289 // If failed and not the default logging level - try to use the default logging level. 1290 if (!SUCCEEDED(rc)){ 1290 if (!RT_SUCCESS(rc)) 1291 { 1291 1292 // If failed write message to the release log. 1292 1293 LogRel(("Cannot set passed logging level=%s Error=%Rrc \n", useLoggingLevel.c_str(), rc)); 1293 1294 // If attempted logging level not the default one then try the default one. 1294 if (!useLoggingLevel.equals(VBOXSVC_LOG_DEFAULT)){ 1295 if (!useLoggingLevel.equals(VBOXSVC_LOG_DEFAULT)) 1296 { 1295 1297 rc = RTLogGroupSettings(RTLogRelDefaultInstance(), VBOXSVC_LOG_DEFAULT); 1296 1298 // If failed report this to the release log. 1297 if (! SUCCEEDED(rc))1299 if (!RT_SUCCESS(rc)) 1298 1300 LogRel(("Cannot set default logging level Error=%Rrc \n", rc)); 1299 1301 }
Note:
See TracChangeset
for help on using the changeset viewer.