瀏覽代碼

[s3] Log potential boto error for debugging (#2940)

Harsh Gupta 3 年之前
父節點
當前提交
346c235dab
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      desktop/libs/aws/src/aws/s3/s3fs.py

+ 1 - 0
desktop/libs/aws/src/aws/s3/s3fs.py

@@ -67,6 +67,7 @@ def auth_error_handler(view_fn):
     try:
       return view_fn(*args, **kwargs)
     except (S3ResponseError, IOError) as e:
+      LOG.exception('S3 error: ' + str(e))
       if 'Forbidden' in str(e) or (hasattr(e, 'status') and e.status == 403):
         path = kwargs.get('path')
         if not path and len(args) > 1: