contentenc: downgrade "interrupted write?" warning to debug

This can happen during normal operation, and is harmless since

14038a1644
"fusefrontend: readFileID: reject files that consist only of a header"

causes dormant header-only files to be rewritten on the next write.
This commit is contained in:
Jakob Unterwurzacher 2017-05-01 18:44:18 +02:00
parent 9768376bd1
commit 1a89919d80
1 changed files with 2 additions and 1 deletions

View File

@ -39,7 +39,8 @@ func (be *ContentEnc) CipherSizeToPlainSize(cipherSize uint64) uint64 {
}
if cipherSize == HeaderLen {
tlog.Warn.Printf("cipherSize %d == header size: interrupted write?\n", cipherSize)
// This can happen between createHeader() and Write() and is harmless.
tlog.Debug.Printf("cipherSize %d == header size: interrupted write?\n", cipherSize)
return 0
}