From 41bbff06b66bd07a8f7420fe1bd760147e471d96 Mon Sep 17 00:00:00 2001 From: Todd Gruben Date: Wed, 25 Jun 2014 09:49:57 -0500 Subject: [PATCH] made setbit logging configurable --- core/http.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/http.go b/core/http.go index 1dac1dfdf..b1f7aa91a 100644 --- a/core/http.go +++ b/core/http.go @@ -87,7 +87,8 @@ func NewLogRecord(t time.Time, data []byte) LogRecord { func genFileName(id string) string { //bucket/YYYY/MM/DDHHMMSS.id.log t := time.Now() - base := "http://pilosa.umbel.com.s3.amazonaws.com/bit_log" + //base := "http://pilosa.umbel.com.s3.amazonaws.com/bit_log" + base := config.GetStringDefault("pilosa_request_log", "/tmp/set_bit_log") return fmt.Sprintf("%s%s.%s.log", base, t.Format("/2006/01/02/15/04-05"), id) }