From 8b86b2d44f898279ddd4af501f7aa2a835d4acd7 Mon Sep 17 00:00:00 2001 From: Kei Okada Date: Thu, 28 Oct 2021 19:30:40 +0900 Subject: [PATCH] add info message on basic authenfication and user login --- src/roswww/roswww_server.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/roswww/roswww_server.py b/src/roswww/roswww_server.py index ec101ef..fe09b25 100644 --- a/src/roswww/roswww_server.py +++ b/src/roswww/roswww_server.py @@ -104,6 +104,7 @@ def _create_webserver(self, packages, single_package=None): @param packages: name and path of ROS packages. ''' def _auth(username, password): + self.loginfo("User %s attempt to login"%(username)) if username in self._keys: return self._keys[username] == password return False @@ -132,6 +133,7 @@ def get(self, path, include_body=True): file_handler = BasicNoCacheStaticFileHandler else: file_handler = NoCacheStaticFileHandler + self.loginfo("Configure webserver with cache:%s, basic:%s"%(self._cached, self._basic)) if single_package: for package in packages: