update log rotator

This commit is contained in:
2026-03-24 17:06:52 +02:00
parent 6f66d14329
commit 8efe7090be
7 changed files with 63 additions and 39 deletions

View File

@@ -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 {