fix: don't remove log dir on startup

This commit is contained in:
James Houlahan
2020-06-05 10:48:34 +02:00
parent 45e99caa23
commit 928fa93765
2 changed files with 2 additions and 0 deletions

View File

@ -25,6 +25,7 @@ Changelog [format](http://keepachangelog.com/en/1.0.0/)
* Crash when failing to match necessary html element
* Crash in message.combineParts when copying nil slice
* Handle double charset better by using local ParseMediaType instead of mime.ParseMediaType
* Don't remove log dir
## [v1.2.7] Donghai-hotfix - beta (2020-05-07)

View File

@ -110,6 +110,7 @@ func (c *Config) ClearOldData() error {
fileName := filepath.Base(filePath)
return (fileName != c.cacheVersion &&
!logFileRgx.MatchString(fileName) &&
filePath != c.GetLogDir() &&
filePath != c.GetTLSCertPath() &&
filePath != c.GetTLSKeyPath() &&
filePath != c.GetEventsPath() &&