summaryrefslogtreecommitdiff
path: root/src/seat.c
diff options
context:
space:
mode:
authorRobert Ancell <robert.ancell@canonical.com>2015-10-22 16:07:32 +1300
committerRobert Ancell <robert.ancell@canonical.com>2015-10-22 16:07:32 +1300
commit4d4d2599688984c053dae2637407d9c0c9e65968 (patch)
tree60ceb5a368df86b16dafe883357992298956aafd /src/seat.c
parent50e86ea07632c556fa060208181303f16ad30481 (diff)
parent602dcab686d32f2f78cb207bb3620d6d754791e8 (diff)
downloadlightdm-git-4d4d2599688984c053dae2637407d9c0c9e65968.tar.gz
Use logrotate to handle files in the default log directory.
This change introduces support for log rotation using the logrotate tool for file in the default log directory (/var/log/lightdm). To support this scenario, existing system log files are not moved to *.old when starting.
Diffstat (limited to 'src/seat.c')
-rw-r--r--src/seat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/seat.c b/src/seat.c
index aff5d936..6d0a6ced 100644
--- a/src/seat.c
+++ b/src/seat.c
@@ -614,7 +614,7 @@ start_session (Seat *seat, Session *session)
log_filename = g_build_filename (log_dir, filename, NULL);
g_free (log_dir);
g_free (filename);
- session_set_log_file (session, log_filename);
+ session_set_log_file (session, log_filename, LOG_MODE_APPEND);
g_free (log_filename);
}