From 5ce6bac805f31e15687271d87ef660087e34b215 Mon Sep 17 00:00:00 2001 From: "Laurent Mignon (ACSONE)" Date: Mon, 20 Jun 2016 10:37:53 +0200 Subject: [PATCH] [IMP] Log http headers if the expected key is not found --- auth_from_http_remote_user/controllers/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/auth_from_http_remote_user/controllers/main.py b/auth_from_http_remote_user/controllers/main.py index 18674fa79..50365b330 100644 --- a/auth_from_http_remote_user/controllers/main.py +++ b/auth_from_http_remote_user/controllers/main.py @@ -55,6 +55,9 @@ class Home(main.Home): if not login: # no HTTP_REMOTE_USER header, # continue usual behavior + _logger.debug("Required fields '%s' not found in http" + " headers\n %s", + self._REMOTE_USER_ATTRIBUTE, headers) return request_login = request.session.login