浏览代码

HUE-8173 [core] Add a warning log when a users switched to the old Hue 3 UI

Romain Rigaux 7 年之前
父节点
当前提交
1ed83c2048
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      desktop/core/src/desktop/views.py

+ 1 - 0
desktop/core/src/desktop/views.py

@@ -519,6 +519,7 @@ def get_banner_message(request):
     url = request.build_absolute_uri("/hue")
     url = request.build_absolute_uri("/hue")
     link = '<a href="%s" style="color: #FFF; font-weight: bold">%s</a>' % (url, url)
     link = '<a href="%s" style="color: #FFF; font-weight: bold">%s</a>' % (url, url)
     message = _('You are accessing an older version of Hue, please switch to the latest version: %s.') % link
     message = _('You are accessing an older version of Hue, please switch to the latest version: %s.') % link
+    LOG.warn('User %s is using Hue 3 UI' % request.user.username)
 
 
   if HUE_LOAD_BALANCER.get() and HUE_LOAD_BALANCER.get() != [''] and \
   if HUE_LOAD_BALANCER.get() and HUE_LOAD_BALANCER.get() != [''] and \
     (not forwarded_host or not any(forwarded_host in lb for lb in HUE_LOAD_BALANCER.get())):
     (not forwarded_host or not any(forwarded_host in lb for lb in HUE_LOAD_BALANCER.get())):