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) -}