Merge pull request #1162 from AudriusButkevicius/silence

Silence versioner warnings for unmatched files (fixes #1117)
This commit is contained in:
Jakob Borg 2014-12-31 12:54:23 +01:00
commit 26a3613397

View File

@ -232,7 +232,9 @@ func (v Staggered) expire(versions []string) {
versionTime, err := time.Parse(TimeFormat, filenameTag(file))
if err != nil {
l.Infof("Versioner: file name %q is invalid: %v", file, err)
if debug {
l.Debugf("Versioner: file name %q is invalid: %v", file, err)
}
continue
}
age := int64(time.Since(versionTime).Seconds())