浏览代码

PR553 [core] common_notebook_ko_components.mako does not import logging (#553)

todaychi 8 年之前
父节点
当前提交
b0e12ce
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      desktop/core/src/desktop/templates/common_notebook_ko_components.mako

+ 3 - 0
desktop/core/src/desktop/templates/common_notebook_ko_components.mako

@@ -15,12 +15,15 @@
 ## limitations under the License.
 
 <%!
+import logging
 from django.utils.translation import ugettext as _
 
 from desktop import conf
 from desktop.lib.i18n import smart_unicode
 from desktop.views import _ko
 
+LOG = logging.getLogger(__name__)
+
 try:
   from beeswax.conf import DOWNLOAD_ROW_LIMIT
 except ImportError, e: