mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
made setbit logging configurable
This commit is contained in:
parent
ce61d00ed7
commit
41bbff06b6
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue