Browse Source

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

Romain Rigaux 7 years ago
parent
commit
1ed83c2048
1 changed files with 1 additions and 0 deletions
  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")
     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
+    LOG.warn('User %s is using Hue 3 UI' % request.user.username)
 
   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())):