SHARE
TWEET

Untitled

a guest Dec 1st, 2015 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (seventy-seven)vagrant@elproff:~/seventy-seven$ tail log/*.log
  2. ==> log/angular_log.log <==
  3. [2015-11-29 13:03:15,032] [ERROR] [[js log] /student/course/1434/exam/95/take/0 URL: http://local.elproff.com/ui/#/student/course/1434/exam/95/take/0  -  User: student@diaa.me ]
  4. None
  5. [2015-11-29 13:03:16,992] [ERROR] [[js log] /student/course/1434/exam/95/take/0 URL: http://local.elproff.com/ui/#/student/course/1434/exam/95/take/0  -  User: student@diaa.me ]
  6. None
  7. [2015-11-29 13:03:22,354] [ERROR] [[js log] /student/course/1434/exam/95/take/0 URL: http://local.elproff.com/ui/#/student/course/1434/exam/95/take/0  -  User: student@diaa.me ]
  8. None
  9. [2015-11-29 13:03:25,867] [ERROR] [[js log] /student/course/1434/exam/95/take/0 URL: http://local.elproff.com/ui/#/student/course/1434/exam/95/take/0  -  User: student@diaa.me ]
  10. None
  11. [2015-11-29 13:03:28,960] [ERROR] [[js log] /student/course/1434/exam/95/take URL: http://local.elproff.com/ui/#/student/course/1434/exam/95/take  -  User: student@diaa.me ]
  12. None
  13.  
  14. ==> log/db_log.log <==
  15. [2015-12-01 10:16:43,337] [DEBUG] [(0.000) SELECT "exams_exam"."id", "exams_exam"."created_by_id", "exams_exam"."created_with_session_key", "exams_exam"."modified_by_id", "exams_exam"."modified_with_session_key", "exams_exam"."creation_date", "exams_exam"."last_modified", "exams_exam"."is_deleted", "exams_exam"."course_id", "exams_exam"."name", "exams_exam"."degree", "exams_exam"."time", "exams_exam"."start_time", "exams_exam"."end_time", "exams_exam"."difficulty", "exams_exam"."type" FROM "exams_exam" WHERE "exams_exam"."id" = 2 LIMIT 21; args=(2,)]
  16. [2015-12-01 10:16:43,339] [DEBUG] [(0.000) SELECT "seven_users_sevenuser"."id", "seven_users_sevenuser"."password", "seven_users_sevenuser"."last_login", "seven_users_sevenuser"."is_superuser", "seven_users_sevenuser"."created_by_id", "seven_users_sevenuser"."created_with_session_key", "seven_users_sevenuser"."modified_by_id", "seven_users_sevenuser"."modified_with_session_key", "seven_users_sevenuser"."creation_date", "seven_users_sevenuser"."last_modified", "seven_users_sevenuser"."is_deleted", "seven_users_sevenuser"."email", "seven_users_sevenuser"."is_staff", "seven_users_sevenuser"."is_active", "seven_users_sevenuser"."date_joined", "seven_users_sevenuser"."user_type_id", "seven_users_sevenuser"."avatar", "seven_users_sevenuser"."full_name", "seven_users_sevenuser"."testing_access", "seven_users_sevenuser"."address_id", "seven_users_sevenuser"."phone_number", "seven_users_sevenuser"."lang", "seven_users_sevenuser"."token", "seven_users_sevenuser"."channel", "seven_users_sevenuser"."facebook_id", "seven_users_sevenuser"."login_trials", "seven_users_sevenuser"."login_blocked" FROM "seven_users_sevenuser" WHERE "seven_users_sevenuser"."id" = 2 LIMIT 21; args=(2,)]
  17. [2015-12-01 10:16:43,341] [DEBUG] [(0.001) SELECT "task_task"."id", "task_task"."created_by_id", "task_task"."created_with_session_key", "task_task"."modified_by_id", "task_task"."modified_with_session_key", "task_task"."creation_date", "task_task"."last_modified", "task_task"."is_deleted", "task_task"."questions_bulk_id", "task_task"."description", "task_task"."description_en", "task_task"."description_ar", "task_task"."duration", "task_task"."course_element_id", "task_task"."count", "task_task"."is_authored" FROM "task_task" WHERE "task_task"."id" = 2238 LIMIT 21; args=(2238,)]
  18. [2015-12-01 10:16:43,343] [DEBUG] [(0.001) SELECT "courses_courseelement"."id", "courses_courseelement"."created_by_id", "courses_courseelement"."created_with_session_key", "courses_courseelement"."modified_by_id", "courses_courseelement"."modified_with_session_key", "courses_courseelement"."creation_date", "courses_courseelement"."last_modified", "courses_courseelement"."is_deleted", "courses_courseelement"."course_id", "courses_courseelement"."name", "courses_courseelement"."parent_id", "courses_courseelement"."next_element_id", "courses_courseelement"."level", "courses_courseelement"."element_type_id" FROM "courses_courseelement" WHERE "courses_courseelement"."id" = 416 LIMIT 21; args=(416,)]
  19. [2015-12-01 10:19:57,695] [DEBUG] [(0.002) SELECT "django_session"."session_key", "django_session"."session_data", "django_session"."expire_date" FROM "django_session" WHERE ("django_session"."session_key" = 'urcn1y2pjsg4pb7or8wgxza0ciq31ic9' AND "django_session"."expire_date" > '2015-12-01 10:19:57.672072') LIMIT 21; args=('urcn1y2pjsg4pb7or8wgxza0ciq31ic9', u'2015-12-01 10:19:57.672072')]
  20. [2015-12-01 10:19:57,697] [DEBUG] [(0.001) SELECT "seven_users_sevenuser"."id", "seven_users_sevenuser"."password", "seven_users_sevenuser"."last_login", "seven_users_sevenuser"."is_superuser", "seven_users_sevenuser"."created_by_id", "seven_users_sevenuser"."created_with_session_key", "seven_users_sevenuser"."modified_by_id", "seven_users_sevenuser"."modified_with_session_key", "seven_users_sevenuser"."creation_date", "seven_users_sevenuser"."last_modified", "seven_users_sevenuser"."is_deleted", "seven_users_sevenuser"."email", "seven_users_sevenuser"."is_staff", "seven_users_sevenuser"."is_active", "seven_users_sevenuser"."date_joined", "seven_users_sevenuser"."user_type_id", "seven_users_sevenuser"."avatar", "seven_users_sevenuser"."full_name", "seven_users_sevenuser"."testing_access", "seven_users_sevenuser"."address_id", "seven_users_sevenuser"."phone_number", "seven_users_sevenuser"."lang", "seven_users_sevenuser"."token", "seven_users_sevenuser"."channel", "seven_users_sevenuser"."facebook_id", "seven_users_sevenuser"."login_trials", "seven_users_sevenuser"."login_blocked" FROM "seven_users_sevenuser" WHERE "seven_users_sevenuser"."id" = 6 LIMIT 21; args=(6,)]
  21. [2015-12-01 10:19:57,700] [DEBUG] [(0.000) SELECT "django_content_type"."id", "django_content_type"."name", "django_content_type"."app_label", "django_content_type"."model" FROM "django_content_type" WHERE "django_content_type"."id" = 34 LIMIT 21; args=(34,)]
  22. [2015-12-01 10:19:57,701] [DEBUG] [(0.001) SELECT COUNT(*) FROM "seven_users_student" WHERE ("seven_users_student"."is_deleted" = false AND "seven_users_student"."user_id" = 6); args=(False, 6)]
  23. [2015-12-01 10:19:57,704] [DEBUG] [(0.001) SELECT "seven_users_student"."id", "seven_users_student"."created_by_id", "seven_users_student"."created_with_session_key", "seven_users_student"."modified_by_id", "seven_users_student"."modified_with_session_key", "seven_users_student"."creation_date", "seven_users_student"."last_modified", "seven_users_student"."is_deleted", "seven_users_student"."user_id", "seven_users_student"."parent_id", "seven_users_student"."parent_relation", "seven_users_student"."gender", "seven_users_student"."birthdate", "seven_users_student"."classes_id", "seven_users_student"."grade_id", "seven_users_student"."school_name" FROM "seven_users_student" INNER JOIN "seven_users_sevenuser" ON ( "seven_users_student"."user_id" = "seven_users_sevenuser"."id" ) WHERE ("seven_users_student"."is_deleted" = false AND "seven_users_student"."user_id" = 6) ORDER BY "seven_users_sevenuser"."email" DESC LIMIT 1; args=(False, 6)]
  24. [2015-12-01 10:19:57,706] [DEBUG] [(0.001) SELECT "questions_question"."id", "questions_question"."created_by_id", "questions_question"."created_with_session_key", "questions_question"."modified_by_id", "questions_question"."modified_with_session_key", "questions_question"."creation_date", "questions_question"."last_modified", "questions_question"."is_deleted", "questions_question"."learning_outcome", "questions_question"."difficulty", "questions_question"."description", "questions_question"."task_id", "questions_question"."attachment_id", "questions_question"."course_element_id", "questions_question"."question_type", "questions_question"."duration", "questions_question"."question", "questions_question"."correct_answer", "questions_question"."is_reviewed" FROM "questions_question" WHERE ("questions_question"."is_deleted" = false AND "questions_question"."id" = 377) LIMIT 21; args=(False, 377)]
  25.  
  26. ==> log/errors_log.log <==
  27.  
  28. ==> log/log_file.log <==
  29. ERROR 'list' object has no attribute 'keys'
  30. Traceback (most recent call last):
  31.   File "/home/vagrant/seventy-seven/exams/api.py", line 255, in check_answer
  32.     result = correct_bytype(question.question_type, question_answer, answer)
  33.   File "/home/vagrant/seventy-seven/exams/correction.py", line 15, in correct_bytype
  34.     return correct_dragdrop(question_answer, answer)
  35.   File "/home/vagrant/seventy-seven/exams/correction.py", line 147, in correct_dragdrop
  36.     total = total + len(question_answer[k].keys())
  37. AttributeError: 'list' object has no attribute 'keys'
  38. INFO [400] /ar/api/v1/exam/check_answer?format=json (0.0s)
  39.  
  40. ==> log/requests_file.log <==
  41. [2015-12-01 10:16:42,868] [INFO] [[200] /ar/api/v1/course_element_type/235?format=json (0.2s)]
  42. [2015-12-01 10:16:42,990] [INFO] [[200] /ar/api/v1/profile?format=json&offset=0&page=1&q= (0.2s)]
  43. [2015-12-01 10:16:42,996] [INFO] [[200] /ar/api/v1/course_element_type/160?format=json (0.1s)]
  44. [2015-12-01 10:16:42,998] [INFO] [[200] /ar/api/v1/course_element_type/214?format=json (0.3s)]
  45. [2015-12-01 10:16:43,003] [INFO] [[200] /ar/api/v1/course_element_type/208?format=json (0.5s)]
  46. [2015-12-01 10:16:43,067] [INFO] [[200] /ar/api/v1/exam_instance/103?format=json (0.3s)]
  47. [2015-12-01 10:16:43,127] [INFO] [[200] /ar/api/v1/exam/103?format=json (0.0s)]
  48. [2015-12-01 10:16:43,279] [INFO] [[200] /ar/api/v1/question_answer/next?format=json (0.1s)]
  49. [2015-12-01 10:16:43,350] [INFO] [[200] /ar/api/v1/question/377?format=json (0.1s)]
  50. [2015-12-01 10:19:57,715] [INFO] [[400] /ar/api/v1/exam/check_answer?format=json (0.0s)]
  51. (seventy-seven)vagrant@elproff:~/seventy-seven$
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top