summaryrefslogtreecommitdiffstats
path: root/plugin
diff options
context:
space:
mode:
Diffstat (limited to 'plugin')
-rw-r--r--plugin/eurephia.c2
-rw-r--r--plugin/firewall/iptables/efw-iptables.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/plugin/eurephia.c b/plugin/eurephia.c
index 67bb682..2d50fc0 100644
--- a/plugin/eurephia.c
+++ b/plugin/eurephia.c
@@ -419,6 +419,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;
@@ -454,6 +455,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;
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);