[Kimchi-devel] [PATCH] [Wok] Make sure all log messages have required parameters

Lucio Correia luciojhc at linux.vnet.ibm.com
Tue Jun 28 14:11:03 UTC 2016


Signed-off-by: Lucio Correia <luciojhc at linux.vnet.ibm.com>
---
 src/wok/root.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/wok/root.py b/src/wok/root.py
index e2b9216..8601b71 100644
--- a/src/wok/root.py
+++ b/src/wok/root.py
@@ -146,9 +146,12 @@ class WokRoot(Root):
         self.paths = wok_paths
         self.domain = 'wok'
         self.messages = messages
-        self.log_map = ROOT_REQUESTS
         self.extends = None
 
+        # set user log messages and make sure all parameters are present
+        self.log_map = ROOT_REQUESTS
+        self.log_args.update({'username': ''})
+
     @cherrypy.expose
     def login(self, *args):
         method = 'POST'
-- 
1.9.1




More information about the Kimchi-devel mailing list