Paolo Galli 4 years ago
parent
commit
b17fd2c42a
1 changed files with 5 additions and 1 deletions
  1. 5 1
      lcmlog-server

+ 5 - 1
lcmlog-server

@@ -56,9 +56,13 @@ def main():
 			if kind != "150" and kind != "Admin":	# We only have this two log types
 				raise KindError
 			if method == "POST":
-				auth(user_id, "POST", kind)	# Check if the user can post for the requested kind
+				logger.info("PRE AUTH")
+				auth(user_id, "POST", kind)     # Check if the user can post for the requested kind
+				logger.info("POST AUTH PRE LOG")
 				log = sys.stdin.read() # Read the log content
+				logger.info("POST LOG PRE POST")
 				method_post(kind, user_name, date, tags, log)
+				logger.info("POST POST")
 			elif method == "GET":
 				auth(user_id, "GET", kind)	# Check if the user can get logs for the requested kind
 				user_to_find = input() # Read the user name of the log writer to search