mirror of https://github.com/neutrinolabs/xrdp
Merge pull request #62 from ArvidNorr/freerdplog
Added some logging in freeRDP module
This commit is contained in:
commit
2ed9994dcc
|
@ -22,6 +22,7 @@
|
||||||
#include "xrdp-freerdp.h"
|
#include "xrdp-freerdp.h"
|
||||||
#include "xrdp-color.h"
|
#include "xrdp-color.h"
|
||||||
#include "xrdp_rail.h"
|
#include "xrdp_rail.h"
|
||||||
|
#include "log.h"
|
||||||
|
|
||||||
#ifdef XRDP_DEBUG
|
#ifdef XRDP_DEBUG
|
||||||
#define LOG_LEVEL 99
|
#define LOG_LEVEL 99
|
||||||
|
@ -146,13 +147,18 @@ lxrdp_connect(struct mod *mod)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
log_message(LOG_LEVEL_INFO,buf);
|
||||||
mod->server_msg(mod, buf, 0);
|
mod->server_msg(mod, buf, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
log_message(LOG_LEVEL_INFO,"freerdp_connect Failed to destination :%s:%d",mod->inst->settings->ServerHostname,mod->inst->settings->ServerPort);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
log_message(LOG_LEVEL_INFO,"freerdp_connect returned Success to destination :%s:%d",mod->inst->settings->ServerHostname,mod->inst->settings->ServerPort);
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue