fix some logging printfs

This commit is contained in:
Brad Fitzpatrick 2011-05-11 08:07:02 -07:00
parent 2d4daaa3bb
commit 54057fb914
1 changed files with 2 additions and 2 deletions

View File

@ -96,7 +96,7 @@ func (mi *Indexer) ReceiveBlob(blobRef *blobref.BlobRef, source io.Reader) (rets
hash := blobRef.Hash()
var written int64
written, err = io.Copy(io.MultiWriter(hash, sniffer), source)
log.Printf("mysqlindexer: wrote %d; err %v", written, err)
log.Printf("mysqlindexer: hashed+sniffed %d bytes; err %v", written, err)
if err != nil {
return
}
@ -108,7 +108,7 @@ func (mi *Indexer) ReceiveBlob(blobRef *blobref.BlobRef, source io.Reader) (rets
sniffer.Parse()
mimeType := sniffer.MimeType()
log.Printf("Read %d bytes; type=%v; truncated=%v", written, sniffer.IsTruncated())
log.Printf("mysqlindexer: type=%v; truncated=%v", mimeType, sniffer.IsTruncated())
var client *mysql.Client
if client, err = mi.getConnection(); err != nil {