mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-13 00:36:28 +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) {
|
if isFile(file) {
|
||||||
versiondate, err := strconv.ParseInt(strings.Replace(filepath.Ext(file), ".v", "", 1), 10, 0)
|
versiondate, err := strconv.ParseInt(strings.Replace(filepath.Ext(file), ".v", "", 1), 10, 0)
|
||||||
if err != nil {
|
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
|
continue
|
||||||
}
|
}
|
||||||
age := now - versiondate
|
age := now - versiondate
|
||||||
@ -231,7 +231,7 @@ func (v Staggered) expire(versions []string) {
|
|||||||
|
|
||||||
prevAge = age
|
prevAge = age
|
||||||
} else {
|
} 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