diff options
author | Matthew Landauer <matthew@openaustralia.org> | 2012-10-11 07:22:29 +1100 |
---|---|---|
committer | Matthew Landauer <matthew@openaustralia.org> | 2012-10-11 07:22:29 +1100 |
commit | 5cc5d16c7668a8d1a6fc5dd816c36016f5d8019b (patch) | |
tree | a6a9432615bba2196daa454a4438f6fb120fde1b | |
parent | 2d94ce91f5d632eaddd92468c966811720026bbd (diff) |
Add comment about what happens when you use rotated log files
-rw-r--r-- | app/models/exim_log.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/exim_log.rb b/app/models/exim_log.rb index 0012441de..e3be1805f 100644 --- a/app/models/exim_log.rb +++ b/app/models/exim_log.rb @@ -27,6 +27,8 @@ class EximLog < ActiveRecord::Base # Load in exim log file from disk, or update if we already have it # Assumes files are named with date, rather than cyclically. # Doesn't do anything if file hasn't been modified since it was last loaded. + # Note: If you do use rotated log files (rather than files named by date), at some + # point old loaded log lines will get deleted in the database. def EximLog.load_file(file_name) is_gz = file_name.include?(".gz") file_name_db = is_gz ? file_name.gsub(".gz", "") : file_name |