update log rotator
This commit is contained in:
@@ -36,7 +36,6 @@ type Config struct {
|
||||
RunPath string `json:"runfile" yaml:"runfile"`
|
||||
AsDaemon bool `json:"asDaemon" yaml:"asDaemon"`
|
||||
LogLimit int64 `json:"logLimit" yaml:logLimit`
|
||||
|
||||
}
|
||||
|
||||
func NewConfig() (*Config, error) {
|
||||
@@ -45,7 +44,7 @@ func NewConfig() (*Config, error) {
|
||||
Port: client.DefaultServicePort,
|
||||
},
|
||||
AsDaemon: false,
|
||||
LogLimit: 1024 * 1024 * 10, // 10 Mb
|
||||
LogLimit: 1024 * 1024 * 10, // 10 Mb
|
||||
}
|
||||
hostname, err := os.Hostname()
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user