##// END OF EJS Templates
better logging
marcink -
r2021:a04844d9 beta
parent child Browse files
Show More
@@ -157,7 +157,7 b' class SimpleGit(BaseVCSController):'
157 #==============================================================
157 #==============================================================
158 # CHECK PERMISSIONS FOR THIS REQUEST USING GIVEN USERNAME
158 # CHECK PERMISSIONS FOR THIS REQUEST USING GIVEN USERNAME
159 #==============================================================
159 #==============================================================
160
160 log.info('%s action on GIT repo "%s"' % (action, repo_name))
161 if action in ['pull', 'push']:
161 if action in ['pull', 'push']:
162 try:
162 try:
163 user = self.__get_user(username)
163 user = self.__get_user(username)
@@ -80,7 +80,6 b' class SimpleHg(BaseVCSController):'
80 # GET ACTION PULL or PUSH
80 # GET ACTION PULL or PUSH
81 #======================================================================
81 #======================================================================
82 action = self.__get_action(environ)
82 action = self.__get_action(environ)
83
84 #======================================================================
83 #======================================================================
85 # CHECK ANONYMOUS PERMISSION
84 # CHECK ANONYMOUS PERMISSION
86 #======================================================================
85 #======================================================================
@@ -121,7 +120,7 b' class SimpleHg(BaseVCSController):'
121 #==============================================================
120 #==============================================================
122 # CHECK PERMISSIONS FOR THIS REQUEST USING GIVEN USERNAME
121 # CHECK PERMISSIONS FOR THIS REQUEST USING GIVEN USERNAME
123 #==============================================================
122 #==============================================================
124
123 log.info('%s action on HG repo "%s"' % (action, repo_name))
125 if action in ['pull', 'push']:
124 if action in ['pull', 'push']:
126 try:
125 try:
127 user = self.__get_user(username)
126 user = self.__get_user(username)
General Comments 0
You need to be logged in to leave comments. Login now