summaryrefslogtreecommitdiffstats
path: root/session.c
Side-by-side diff
Diffstat (limited to 'session.c') (more/less context) (ignore whitespace changes)
-rw-r--r--session.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/session.c b/session.c
index 2834fdc..64e0fd8 100644
--- a/session.c
+++ b/session.c
@@ -117,6 +117,8 @@ session_create(const char *name, const char *cmd, u_int sx, u_int sy)
}
session_select(s, 0);
+ log_debug("session %s created", s->name);
+
return (s);
}
@@ -126,6 +128,8 @@ session_destroy(struct session *s)
{
u_int i;
+ log_debug("session %s destroyed", s->name);
+
if (session_index(s, &i) != 0)
fatalx("session not found");
ARRAY_SET(&sessions, i, NULL);