|
@@ -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
|