mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-09 23:00:58 +00:00
Info line formatting (ref #583)
This commit is contained in:
parent
1c41b0bc2f
commit
b0408ef5c6
@ -186,7 +186,7 @@ func (v Staggered) expire(versions []string) {
|
||||
if isFile(file) {
|
||||
versiondate, err := strconv.ParseInt(strings.Replace(filepath.Ext(file), ".v", "", 1), 10, 0)
|
||||
if err != nil {
|
||||
l.Infoln("Versioner: file name %q is invalid: %v", file, err)
|
||||
l.Infof("Versioner: file name %q is invalid: %v", file, err)
|
||||
continue
|
||||
}
|
||||
age := now - versiondate
|
||||
@ -231,7 +231,7 @@ func (v Staggered) expire(versions []string) {
|
||||
|
||||
prevAge = age
|
||||
} else {
|
||||
l.Infoln("non-file %q is named like a file version", file)
|
||||
l.Infof("non-file %q is named like a file version", file)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user