浏览代码

HUE-6103 [fb] Log filesystem initialization exceptions

Jenny Kim 8 年之前
父节点
当前提交
3a5b324
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      desktop/core/src/desktop/lib/fsmanager.py
  2. 1 1
      desktop/libs/aws/src/aws/__init__.py

+ 1 - 1
desktop/core/src/desktop/lib/fsmanager.py

@@ -63,7 +63,7 @@ def _make_fs(name):
       else:
         logging.warn('Can not get filesystem called "%s" for "%s" schema' % (name, schema))
     except Exception, e:
-      logging.warn(e)
+      logging.error('Failed to get filesystem called "%s" for "%s" schema: %s' % (name, schema, e))
   return ProxyFS(fs_dict, DEFAULT_SCHEMA)
 
 

+ 1 - 1
desktop/libs/aws/src/aws/__init__.py

@@ -26,7 +26,7 @@ def get_client(identifier='default'):
   global CLIENT_CACHE
   _init_clients()
   if identifier not in CLIENT_CACHE:
-    raise ValueError('Unknown AWS client: %s, check you configuration' % identifier)
+    raise ValueError('Unknown AWS client: %s, check your configuration' % identifier)
   return CLIENT_CACHE[identifier]