gcs: remove a superfluous debug log

This commit is contained in:
Nicola Murino 2020-09-29 09:17:08 +02:00
commit 5eabaf98e0
No known key found for this signature in database
GPG key ID: 2F1FB59433D5A8CB

View file

@ -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
}