aboutsummaryrefslogtreecommitdiffstats
path: root/log
diff options
context:
space:
mode:
authorMartin Polden <mpolden@mpolden.no>2019-12-26 15:09:46 +0100
committerMartin Polden <mpolden@mpolden.no>2019-12-26 15:09:46 +0100
commit1391d9563e14dec9f37f0f4d523fdb7f1d9590be (patch)
tree89996ec887f855468a68b92b1cb288355ab66826 /log
parentec534b6e02a14d0d7bc50ae6ee75a8314fd6f906 (diff)
Reduce logger expiry interval
Diffstat (limited to 'log')
-rw-r--r--log/logger.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/log/logger.go b/log/logger.go
index 99e53d1..4618c0e 100644
--- a/log/logger.go
+++ b/log/logger.go
@@ -60,7 +60,7 @@ func New(w io.Writer, prefix string, options RecordOptions) (*Logger, error) {
go logger.readQueue()
if options.TTL > 0 {
if options.ExpiryInterval <= 0 {
- options.ExpiryInterval = 10 * time.Minute
+ options.ExpiryInterval = time.Minute
}
maintain(logger, options.ExpiryInterval, options.TTL)
}