- Timestamp:
- Aug 7, 2013 1:58:24 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/SystemPropertiesImpl.cpp
r47591 r47592 657 657 658 658 Utf8Str useLoggingLevel(m->strLoggingLevel); 659 useLoggingLevel = (useLoggingLevel.isEmpty() ? VBOXSVC_LOG_DEFAULT : useLoggingLevel); 659 if (useLoggingLevel.isEmpty()) 660 useLoggingLevel = VBOXSVC_LOG_DEFAULT; 660 661 661 662 useLoggingLevel.cloneTo(aLoggingLevel); … … 679 680 } 680 681 else 681 { 682 LogRel(("Cannot set passed logging level=%ls, or the default one - Error=%Rrc \n", aLoggingLevel, rc)); 683 } 682 LogRel(("Cannot set passed logging level=%ls, or the default one - Error=%Rhrc \n", aLoggingLevel, rc)); 684 683 685 684 return rc; … … 1288 1287 rc = RTLogGroupSettings(RTLogRelDefaultInstance(), useLoggingLevel.c_str()); 1289 1288 // If failed and not the default logging level - try to use the default logging level. 1290 if ( !RT_SUCCESS(rc))1289 if (RT_FAILURE(rc)) 1291 1290 { 1292 1291 // If failed write message to the release log. … … 1297 1296 rc = RTLogGroupSettings(RTLogRelDefaultInstance(), VBOXSVC_LOG_DEFAULT); 1298 1297 // If failed report this to the release log. 1299 if ( !RT_SUCCESS(rc))1298 if (RT_FAILURE(rc)) 1300 1299 LogRel(("Cannot set default logging level Error=%Rrc \n", rc)); 1301 1300 }
Note:
See TracChangeset
for help on using the changeset viewer.