Overview
Comment: | oops. missed the logs part of the file names ... |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | v1.60 |
Files: | files | file ages | folders |
SHA1: |
1601c7b6150178f868dad53a786e5514 |
User & Date: | mrwellan on 2015-10-27 11:02:39 |
Other Links: | branch diff | manifest | tags |
Context
2015-10-27
| ||
11:05 | oops. missed the logs part of the file names ... check-in: 56f19e80ce user: mrwellan tags: v1.60 | |
11:02 | oops. missed the logs part of the file names ... check-in: 1601c7b615 user: mrwellan tags: v1.60 | |
10:59 | oops. missed the logs part of the file names ... check-in: f82799600b user: mrwellan tags: v1.60 | |
Changes
Modified server.scm from [5be03a2d5f] to [f5b22f2e78].
︙ | ︙ | |||
119 120 121 122 123 124 125 | (push-directory *toppath*) (if (not (directory-exists? "logs"))(create-directory "logs")) ;; Rotate logs, logic: ;; if > 500k and older than 1 week, remove previous compressed log and compress this log (directory-fold (lambda (file rem) (if (and (string-match "^.*.log" file) | | | 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 | (push-directory *toppath*) (if (not (directory-exists? "logs"))(create-directory "logs")) ;; Rotate logs, logic: ;; if > 500k and older than 1 week, remove previous compressed log and compress this log (directory-fold (lambda (file rem) (if (and (string-match "^.*.log" file) (> (file-size (conc "logs/" file)) 200000)) (let ((gzfile (conc "logs/" file ".gz"))) (if (file-exists gzfile) (begin (debug:print-info 0 "removing " gzfile) (delete-file gzfile))) (debug:print-info 0 "compressing " file) (system (conc "gzip logs/" file))))) |
︙ | ︙ |