remove file logging from automatically being set on the core console handle. You must now use mod_logfile to do file logging.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6509 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris
2007-12-04 23:18:24 +00:00
parent 552fd37e1c
commit 7b34d76091
3 changed files with 8 additions and 25 deletions

View File

@@ -43,10 +43,6 @@
#define PIDFILE "freeswitch.pid"
static char *pfile = PIDFILE;
/* log filename: Filename of the freeswitch log file to be used if we are in background mode */
#define LOGFILE "freeswitch.log"
static char *lfile = LOGFILE;
/* If we are a windows service, what should we be called */
#define SERVICENAME "Freeswitch"
@@ -184,7 +180,7 @@ void WINAPI service_main(DWORD numArgs, char **args)
set_high_priority();
/* attempt to initialize freeswitch and load modules */
if (switch_core_init_and_modload(lfile, flags, &err) != SWITCH_STATUS_SUCCESS) {
if (switch_core_init_and_modload(flags, &err) != SWITCH_STATUS_SUCCESS) {
/* freeswitch did not start sucessfully */
status.dwCurrentState = SERVICE_STOPPED;
} else {
@@ -422,7 +418,7 @@ int main(int argc, char *argv[])
}
#endif
if (switch_core_init_and_modload(nc ? lfile : NULL, flags, &err) != SWITCH_STATUS_SUCCESS) {
if (switch_core_init_and_modload(flags, &err) != SWITCH_STATUS_SUCCESS) {
fprintf(stderr, "Cannot Initilize [%s]\n", err);
return 255;
}