summaryrefslogtreecommitdiffstats
path: root/sesman
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2012-06-10 21:50:57 -0700
committerJay Sorg <jay.sorg@gmail.com>2012-06-10 21:50:57 -0700
commit099a421c7706ea5d7706890d7a3f12a4ccf7c126 (patch)
treef12191ef644d54211631507bfca65a2eedf92274 /sesman
parent3fad514c029a60c6d25286fe3b3a4ad20c80a856 (diff)
downloadxrdp-proprietary-099a421c7706ea5d7706890d7a3f12a4ccf7c126.tar.gz
xrdp-proprietary-099a421c7706ea5d7706890d7a3f12a4ccf7c126.zip
log: added path for when --prefix is used
Diffstat (limited to 'sesman')
-rw-r--r--sesman/sesman.c9
-rw-r--r--sesman/sesman.ini2
2 files changed, 5 insertions, 6 deletions
diff --git a/sesman/sesman.c b/sesman/sesman.c
index 1d60626c..b882c49d 100644
--- a/sesman/sesman.c
+++ b/sesman/sesman.c
@@ -252,20 +252,20 @@ main(int argc, char** argv)
}
g_snprintf(cfg_file,255,"%s/sesman.ini",XRDP_CFG_PATH);
-
+
/* starting logging subsystem */
error = log_start(cfg_file,"XRDP-sesman");
if (error != LOG_STARTUP_OK)
{
- char buf[256] ;
switch (error)
{
case LOG_ERROR_MALLOC:
- g_printf("error on malloc. cannot start logging. quitting.\n");
+ g_writeln("error on malloc. cannot start logging. quitting.");
break;
case LOG_ERROR_FILE_OPEN:
- g_printf("error opening log file [%s]. quitting.\n", getLogFile(buf,255));
+ g_writeln("error opening log file [%s]. quitting.",
+ getLogFile(text, 255));
break;
}
g_deinit();
@@ -368,4 +368,3 @@ main(int argc, char** argv)
g_deinit();
return 0;
}
-
diff --git a/sesman/sesman.ini b/sesman/sesman.ini
index 88252a18..f2a210a4 100644
--- a/sesman/sesman.ini
+++ b/sesman/sesman.ini
@@ -19,7 +19,7 @@ IdleTimeLimit=0
DisconnectedTimeLimit=0
[Logging]
-LogFile=/var/log/xrdp-sesman.log
+LogFile=xrdp-sesman.log
LogLevel=DEBUG
EnableSyslog=1
SyslogLevel=DEBUG