summaryrefslogtreecommitdiff
path: root/src/log.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-07-25 21:22:57 +0200
committerLennart Poettering <lennart@poettering.net>2011-07-25 21:22:57 +0200
commit871e580949b1417058da7f7e9fa0380d308ef708 (patch)
treecd8d308e7ab3c81c42259b3ed2a636334be9b367 /src/log.c
parent41e4d6e9ace4f3b717af3c0419b69a2ac7935116 (diff)
selinux: log how much time it takes to load the SELinux policy and database
Diffstat (limited to 'src/log.c')
-rw-r--r--src/log.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/log.c b/src/log.c
index 3776f0d9d8..b8ce122f3d 100644
--- a/src/log.c
+++ b/src/log.c
@@ -231,6 +231,12 @@ void log_set_target(LogTarget target) {
log_target = target;
}
+void log_close(void) {
+ log_close_console();
+ log_close_kmsg();
+ log_close_syslog();
+}
+
void log_set_max_level(int level) {
assert((level & LOG_PRIMASK) == level);