Skip to content

Commit

Permalink
gcs: remove a superfluous debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
drakkan committed Sep 29, 2020
1 parent d1f0e9a commit 5eabaf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vfs/gcsfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -595,12 +595,12 @@ func (fs *GCSFs) getPrefixForStat(name string) string {
func (fs GCSFs) GetMimeType(name string) (string, error) {
ctx, cancelFn := context.WithDeadline(context.Background(), time.Now().Add(fs.ctxTimeout))
defer cancelFn()

bkt := fs.svc.Bucket(fs.config.Bucket)
obj := bkt.Object(name)
attrs, err := obj.Attrs(ctx)
if err != nil {
return "", err
}
logger.DebugToConsole("content type: %v", attrs.ContentType)
return attrs.ContentType, nil
}

0 comments on commit 5eabaf9

Please sign in to comment.