summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/main.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c
index cdc6eb0..2f2edab 100644
--- a/src/main.c
+++ b/src/main.c
@@ -462,10 +462,7 @@ main (int argc, char **argv)
filter_destroy ();
#endif /* FILTER_ENABLE */
- if (config.syslog)
- closelog ();
- else
- close_log_file ();
+ shutdown_logging ();
return EXIT_SUCCESS;
}