Fix golang 1.6 vet issue

This commit is contained in:
James Shubin
2016-02-22 01:05:27 -05:00
parent ce0d68a8ba
commit ed61444d82
2 changed files with 2 additions and 2 deletions

View File

@@ -61,7 +61,7 @@ func ConfigWatch(file string) chan bool {
} else if err == syscall.ENOSPC {
// XXX: occasionally: no space left on device,
// XXX: probably due to lack of inotify watches
log.Printf("Lack of watches for config(%v) error: %+v", file, err.Error) // 0x408da0
log.Printf("Out of inotify watches for config(%v)", file)
log.Fatal(err)
} else {
log.Printf("Unknown config(%v) error:", file)

View File

@@ -142,7 +142,7 @@ func (obj *FileRes) Watch() {
} else if err == syscall.ENOSPC {
// XXX: occasionally: no space left on device,
// XXX: probably due to lack of inotify watches
log.Printf("Lack of watches for file[%v] error: %+v", obj.Name, err.Error) // 0x408da0
log.Printf("%v[%v]: Out of inotify watches!", obj.GetRes(), obj.GetName())
log.Fatal(err)
} else {
log.Printf("Unknown file[%v] error:", obj.Name)