Changeset 46908 in vbox
- Timestamp:
- Jul 2, 2013 1:28:36 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/xpcom/server.cpp
r45518 r46908 880 880 nsresult rc; 881 881 882 char szLogFile[RTPATH_MAX]; 882 883 if (!pszLogFile) 883 884 { 884 char szLogFile[RTPATH_MAX] = "";885 885 vrc = com::GetVBoxUserHomeDirectory(szLogFile, sizeof(szLogFile)); 886 if (vrc == VERR_ACCESS_DENIED)887 return RTMsgErrorExit(RTEXITCODE_FAILURE, "failed to open global settings directory '%s'", szLogFile);888 886 if (RT_SUCCESS(vrc)) 889 887 vrc = RTPathAppend(szLogFile, sizeof(szLogFile), "VBoxSVC.log"); 890 if (RT_SUCCESS(vrc)) 891 pszLogFile = RTStrDup(szLogFile); 892 if (RT_FAILURE(vrc)) 893 return RTMsgErrorExit(RTEXITCODE_FAILURE, "failed to determine release log file (%Rrc)", vrc); 894 } 888 } 889 else 890 { 891 if (!RTStrPrintf(szLogFile, sizeof(szLogFile), "%s", pszLogFile)) 892 vrc = VERR_NO_MEMORY; 893 } 894 if (RT_FAILURE(vrc)) 895 return RTMsgErrorExit(RTEXITCODE_FAILURE, "failed to create logging file name, rc=%Rrc", vrc); 896 895 897 char szError[RTPATH_MAX + 128]; 896 vrc = com::VBoxLogRelCreate("XPCOM Server", pszLogFile,898 vrc = com::VBoxLogRelCreate("XPCOM Server", szLogFile, 897 899 RTLOGFLAGS_PREFIX_THREAD | RTLOGFLAGS_PREFIX_TIME_PROG, 898 900 "all", "VBOXSVC_RELEASE_LOG",
Note:
See TracChangeset
for help on using the changeset viewer.