소스 검색

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())):