From c14c83122ba01231a406d9e6af4338a7dc23cd35 Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Tue, 2 Dec 2008 11:14:18 +0100 Subject: Made some messages clearer in efw-iptables --- plugin/firewall/iptables/efw-iptables.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugin') diff --git a/plugin/firewall/iptables/efw-iptables.c b/plugin/firewall/iptables/efw-iptables.c index a5171f7..6c02fbd 100644 --- a/plugin/firewall/iptables/efw-iptables.c +++ b/plugin/firewall/iptables/efw-iptables.c @@ -100,7 +100,7 @@ void eFW_RunFirewall(void *fwargs) { efwRemoveMessageQueue(ctx, fwargs); - DEBUG(ctx, 28, "eFW_RunFirewall: Telling eFW master that the worker process is about to shutdown"); + DEBUG(ctx, 28, "eFW_RunFirewall: Telling eFW master that the worker process is about to shut down"); sem_post(cfg->semp_worker); DEBUG(ctx, 28, "eFW_RunFirewall: Waiting for eFW master to acknowledge"); @@ -117,7 +117,7 @@ void eFW_RunFirewall(void *fwargs) { eurephia_log(ctx, LOG_PANIC, 0, "eFW_RunFirewall: Did not receive any shutdown ack: %s", strerror(errno)); } else { - eurephia_log(ctx, LOG_INFO, 1, "efw_iptables: Firewall interface shutdown"); + eurephia_log(ctx, LOG_INFO, 1, "efw_iptables: Firewall interface is shut down"); } } efwRemoveSemaphores(ctx, fwargs); -- cgit From 00e2d0e945a0ef6424da7aeddf4b449423d08790 Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Tue, 2 Dec 2008 11:20:21 +0100 Subject: Added login and logout info messages when log-level is 1 --- plugin/eurephia.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugin') diff --git a/plugin/eurephia.c b/plugin/eurephia.c index 4853591..81ea7c9 100644 --- a/plugin/eurephia.c +++ b/plugin/eurephia.c @@ -417,6 +417,7 @@ int eurephia_connect(eurephiaCTX *ctx, const char **env) { // Register the session login ret = eDBregister_login(ctx, session, certid, uid, proto, remipaddr, remport, vpnipaddr, vpnipmask); eDBfree_session(ctx, session); + eurephia_log(ctx, LOG_INFO, 1, "User '%s' is logged in", uname); DEBUG(ctx, 10, "** Function result: eurephia_connect(...) = %i", ret); return ret; @@ -452,6 +453,7 @@ int eurephia_disconnect(eurephiaCTX *ctx, const char **env) { // 2. eDBregister_logout(ctx, session, env[bytes_sent], env[bytes_received]) ret = eDBregister_logout(ctx, session, bytes_sent, bytes_rec, duration); eDBfree_session(ctx, session); + eurephia_log(ctx, LOG_INFO, 1, "User '%s' is logged out", uname); DEBUG(ctx, 10, "** Function result: eurephia_disconnect(...) = %i", ret); return ret; -- cgit