diff options
author | ilsimo <ilsimo> | 2008-02-20 22:02:24 +0000 |
---|---|---|
committer | ilsimo <ilsimo> | 2008-02-20 22:02:24 +0000 |
commit | 4c9d3862e55ab5d6fa734549478bb0a00be9f7ed (patch) | |
tree | 2efde9a8872ed90ea14521702614768aaf0b765b /sesman/scp_v0.c | |
parent | 8f0045c19b03d5c9a0baea6b72037ec226db8343 (diff) | |
download | xrdp-proprietary-4c9d3862e55ab5d6fa734549478bb0a00be9f7ed.tar.gz xrdp-proprietary-4c9d3862e55ab5d6fa734549478bb0a00be9f7ed.zip |
updating logging subsystem
Diffstat (limited to 'sesman/scp_v0.c')
-rw-r--r-- | sesman/scp_v0.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sesman/scp_v0.c b/sesman/scp_v0.c index 490b50b4..942bf46c 100644 --- a/sesman/scp_v0.c +++ b/sesman/scp_v0.c @@ -27,6 +27,8 @@ #include "sesman.h" +extern struct config_sesman g_cfg; + /******************************************************************************/ void DEFAULT_CC scp_v0_process(struct SCP_CONNECTION* c, struct SCP_SESSION* s) @@ -51,16 +53,16 @@ scp_v0_process(struct SCP_CONNECTION* c, struct SCP_SESSION* s) g_printf("pre auth"); if (1 == access_login_allowed(s->username)) { - log_message(LOG_LEVEL_INFO, "granted TS access to user %s", s->username); + log_message(&(g_cfg.log), LOG_LEVEL_INFO, "granted TS access to user %s", s->username); if (SCP_SESSION_TYPE_XVNC == s->type) { - log_message(LOG_LEVEL_INFO, "starting Xvnc session..."); + log_message(&(g_cfg.log), LOG_LEVEL_INFO, "starting Xvnc session..."); display = session_start(s->width, s->height, s->bpp, s->username, s->password, data, SESMAN_SESSION_TYPE_XVNC); } else { - log_message(LOG_LEVEL_INFO, "starting Xrdp session..."); + log_message(&(g_cfg.log), LOG_LEVEL_INFO, "starting Xrdp session..."); display = session_start(s->width, s->height, s->bpp, s->username, s->password, data, SESMAN_SESSION_TYPE_XRDP); } |