if (r < 0)
return r;
- log_info("New session %s of user %s.", s->id, s->user->name);
+ log_full(s->display || s->tty ? LOG_INFO : LOG_DEBUG,
+ "New session %s of user %s.", s->id, s->user->name);
/* Create cgroup */
r = session_create_cgroup(s);
assert(s);
if (s->started)
- log_info("Removed session %s.", s->id);
+ log_full(s->display || s->tty ? LOG_INFO : LOG_DEBUG,
+ "Removed session %s.", s->id);
/* Kill cgroup */
k = session_terminate_cgroup(s);
r = q;
}
-finish:
if (pid_set)
set_free(pid_set);