Skip to content

Commit

Permalink
Improve logging
Browse files Browse the repository at this point in the history
  • Loading branch information
sharpner committed Jan 14, 2016
1 parent c3f0e48 commit e06ea84
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/gridfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ func (g GridfsStorage) StoreChildImage(
_, err = io.Copy(targetfile, reader)

if err != nil {
log.Printf("Error for filename %s with size %dx%d\n", original.Name(), entry.Width, entry.Height)
log.Printf("Could not write file completely, cleaning %s\n", targetfile.Name())
targetfile.Abort()
return nil, err
Expand Down

0 comments on commit e06ea84

Please sign in to comment.