From 843cc85edec6135f40f02f91caf4285f0c1c3c49 Mon Sep 17 00:00:00 2001 From: Brian Tiger Chow Date: Sat, 24 Jan 2015 01:20:31 -0800 Subject: [PATCH] go-ipfs-config: refactor(eventlog) integrate into fsrepo now, eventlogger works wherever the fsrepo is used --- config/config.go | 1 - config/logs.go | 17 ----------------- 2 files changed, 18 deletions(-) diff --git a/config/config.go b/config/config.go index 16b6a7896..816ffcef5 100644 --- a/config/config.go +++ b/config/config.go @@ -23,7 +23,6 @@ type Config struct { Version Version // local node's version management Bootstrap []BootstrapPeer // local nodes's bootstrap peers Tour Tour // local node's tour position - Logs Logs // local node's event log configuration } const ( diff --git a/config/logs.go b/config/logs.go index 687f0832f..d912156be 100644 --- a/config/logs.go +++ b/config/logs.go @@ -1,18 +1 @@ package config - -// LogsDefaultDirectory is the directory to store all IPFS event logs. -var LogsDefaultDirectory = "logs" - -// Logs tracks the configuration of the event logger -type Logs struct { - Filename string - MaxSizeMB uint64 - MaxBackups uint64 - MaxAgeDays uint64 -} - -// LogsPath returns the default path for event logs given a configuration root -// (set an empty string to have the default configuration root) -func LogsPath(configroot string) (string, error) { - return Path(configroot, LogsDefaultDirectory) -}