diff options
author | ArvidNorr <norrarvid@gmail.com> | 2013-01-31 11:22:43 -0800 |
---|---|---|
committer | ArvidNorr <norrarvid@gmail.com> | 2013-01-31 11:22:43 -0800 |
commit | 72c99794ee6d2811ba9c85d76e1f30f2309ac7d8 (patch) | |
tree | a76dc3599dea4ecc8d4a7a6369ab3b0873547dc1 /xrdp/xrdp_wm.c | |
parent | 9aa0cb4e61eeb253a9a1177f1162eb5289130e96 (diff) | |
parent | fb7294ed26d28b12d8da5cf5f41f5975f1999f04 (diff) | |
download | xrdp-proprietary-72c99794ee6d2811ba9c85d76e1f30f2309ac7d8.tar.gz xrdp-proprietary-72c99794ee6d2811ba9c85d76e1f30f2309ac7d8.zip |
Merge pull request #59 from ArvidNorr/morelogging
More logging for debug and trace.
Diffstat (limited to 'xrdp/xrdp_wm.c')
-rw-r--r-- | xrdp/xrdp_wm.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/xrdp/xrdp_wm.c b/xrdp/xrdp_wm.c index e67bdff9..ea7e286a 100644 --- a/xrdp/xrdp_wm.c +++ b/xrdp/xrdp_wm.c @@ -19,6 +19,7 @@ */ #include "xrdp.h" +#include "log.h" /*****************************************************************************/ struct xrdp_wm *APP_CC @@ -44,6 +45,7 @@ xrdp_wm_create(struct xrdp_process *owner, pid = g_getpid(); g_snprintf(event_name, 255, "xrdp_%8.8x_wm_login_mode_event_%8.8x", pid, owner->session_id); + log_message(LOG_LEVEL_DEBUG,event_name); self->login_mode_event = g_create_wait_obj(event_name); self->painter = xrdp_painter_create(self, self->session); self->cache = xrdp_cache_create(self, self->session, self->client_info); @@ -209,7 +211,7 @@ xrdp_wm_load_pointer(struct xrdp_wm *self, char *file_name, char *data, if (!g_file_exist(file_name)) { - g_writeln("xrdp_wm_load_pointer: error pointer file [%s] does not exist", + log_message(LOG_LEVEL_ERROR,"xrdp_wm_load_pointer: error pointer file [%s] does not exist", file_name); return 1; } @@ -220,7 +222,7 @@ xrdp_wm_load_pointer(struct xrdp_wm *self, char *file_name, char *data, if (fd < 1) { - g_writeln("xrdp_wm_load_pointer: error loading pointer from file [%s]", + log_message(LOG_LEVEL_ERROR,"xrdp_wm_load_pointer: error loading pointer from file [%s]", file_name); return 1; } @@ -461,7 +463,7 @@ xrdp_wm_load_static_colors_plus(struct xrdp_wm *self, char *autorun_name) } else { - g_writeln("xrdp_wm_load_static_colors: Could not read xrdp.ini file %s", cfg_file); + log_message(LOG_LEVEL_ERROR,"xrdp_wm_load_static_colors: Could not read xrdp.ini file %s", cfg_file); } if (self->screen->bpp == 8) @@ -617,7 +619,7 @@ xrdp_wm_init(struct xrdp_wm *self) } else { - g_writeln("xrdp_wm_init: Could not read xrdp.ini file %s", cfg_file); + log_message(LOG_LEVEL_ERROR,"xrdp_wm_init: Could not read xrdp.ini file %s", cfg_file); } } else |