mirror of
https://github.com/drakkan/sftpgo.git
synced 2026-03-14 14:25:52 +01:00
gcs: remove a superfluous debug log
This commit is contained in:
parent
d1f0e9ae9f
commit
5eabaf98e0
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue