添加错误日志

This commit is contained in:
陈冠林
2019-01-25 16:11:53 +08:00
parent 3b263cf807
commit c3c0c99db0
2 changed files with 122 additions and 0 deletions

94
log/debug.log Normal file
View File

@@ -0,0 +1,94 @@
10 command views 2019-01-25 03:31:26,486 request is <WSGIRequest: GET '/command/?cmd=AllIpGet&addr_pool_id=5'>
10 command views 2019-01-25 03:31:26,491 return is <HttpResponse status_code=200, "application/json">
10 command views 2019-01-25 03:31:27,760 request is <WSGIRequest: GET '/command/?cmd=AllIpGet&addr_pool_id=5'>
10 command views 2019-01-25 03:31:27,764 return is <HttpResponse status_code=200, "application/json">
10 command views 2019-01-25 03:32:59,160 request is <WSGIRequest: GET '/command/?addr_pool_id=0&cmd=AllIpGet'>
10 command views 2019-01-25 03:32:59,165 return is <HttpResponse status_code=200, "application/json">
10 command views 2019-01-25 03:33:22,172 request is <WSGIRequest: GET '/command/?cmd=AllIpGet&addr_pool_id=5'>
10 command views 2019-01-25 03:33:22,176 return is {'response': 'The command completed successfully.', 'candidate_ip': []}
10 command views 2019-01-25 03:33:51,350 request is <WSGIRequest: GET '/command/?user_name=demo&server_ip=192.168.11.221&cmd=UserDelete'>
10 command views 2019-01-25 03:33:56,625 return is {'error': 'Connection to the server has failed'}
10 command views 2019-01-25 03:36:19,984 request is <WSGIRequest: GET '/command/?user_name=demo&server_ip=192.168.11.221&cmd=UserDelete'>
10 command views 2019-01-25 03:36:25,256 return is {'error': 'Connection to the server has failed'}
10 command views 2019-01-25 06:40:53,313 request is <WSGIRequest: GET '/command/?user_name=demo&server_ip=192.168.11.221&cmd=UserDelete'>
10 command views 2019-01-25 06:40:58,586 return is {'error': 'Connection to the server has failed'}
10 command views 2019-01-25 06:41:40,816 request is <WSGIRequest: GET '/command/?addr_pool_id=120&cmd=IpNumGet'>
10 command views 2019-01-25 06:41:40,826 request is <WSGIRequest: GET '/command/?addr_pool_id=119&cmd=IpNumGet'>
10 command views 2019-01-25 06:41:40,828 return is {'response': 'The command completed successfully.', 'num': 1}
10 command views 2019-01-25 06:41:40,834 request is <WSGIRequest: GET '/command/?addr_pool_id=118&cmd=IpNumGet'>
10 command views 2019-01-25 06:41:40,837 request is <WSGIRequest: GET '/command/?addr_pool_id=0&cmd=IpNumGet'>
10 command views 2019-01-25 06:41:40,838 return is {'response': 'The command completed successfully.', 'num': 1}
10 command views 2019-01-25 06:41:40,841 return is {'response': 'The command completed successfully.', 'num': 1}
10 command views 2019-01-25 06:41:40,842 return is {'response': 'The command completed successfully.', 'num': 0}
10 command views 2019-01-25 06:42:17,443 request is <WSGIRequest: GET '/command/?addr_pool_id=120&cmd=IpNumGet'>
10 command views 2019-01-25 06:42:17,454 return is {'response': 'The command completed successfully.', 'num': 1}
10 command views 2019-01-25 06:42:17,472 request is <WSGIRequest: GET '/command/?addr_pool_id=119&cmd=IpNumGet'>
10 command views 2019-01-25 06:42:17,479 request is <WSGIRequest: GET '/command/?addr_pool_id=0&cmd=IpNumGet'>
10 command views 2019-01-25 06:42:17,482 request is <WSGIRequest: GET '/command/?addr_pool_id=118&cmd=IpNumGet'>
10 command views 2019-01-25 06:42:17,483 return is {'response': 'The command completed successfully.', 'num': 1}
10 command views 2019-01-25 06:42:17,486 return is {'response': 'The command completed successfully.', 'num': 0}
10 command views 2019-01-25 06:42:17,487 return is {'response': 'The command completed successfully.', 'num': 1}
10 command views 2019-01-25 06:42:20,130 request is <WSGIRequest: GET '/command/?addr_pool_id=119&cmd=AllIpGet'>
10 command views 2019-01-25 06:42:20,134 return is {'response': 'The command completed successfully.', 'candidate_ip': ['192.168.11.77']}
10 command views 2019-01-25 06:42:25,511 request is <WSGIRequest: GET '/command/?addr_pool_id=118&cmd=AllIpGet'>
10 command views 2019-01-25 06:42:25,515 return is {'response': 'The command completed successfully.', 'candidate_ip': ['192.168.10.199']}
10 command views 2019-01-25 06:42:42,850 request is <WSGIRequest: GET '/command/?addr_pool_id=120&cmd=IpNumGet'>
10 command views 2019-01-25 06:42:42,854 return is {'response': 'The command completed successfully.', 'num': 1}
10 command views 2019-01-25 06:42:42,860 request is <WSGIRequest: GET '/command/?addr_pool_id=119&cmd=IpNumGet'>
10 command views 2019-01-25 06:42:42,864 request is <WSGIRequest: GET '/command/?addr_pool_id=0&cmd=IpNumGet'>
10 command views 2019-01-25 06:42:42,872 return is {'response': 'The command completed successfully.', 'num': 1}
10 command views 2019-01-25 06:42:42,873 return is {'response': 'The command completed successfully.', 'num': 0}
10 command views 2019-01-25 06:47:00,253 request is <WSGIRequest: GET '/command/?addr_pool_id=0&cmd=AllIpGet'>
10 command views 2019-01-25 06:47:00,258 return is {'response': 'The command completed successfully.', 'candidate_ip': []}
10 command views 2019-01-25 06:48:40,273 request is <WSGIRequest: GET '/command/?addr_pool_id=120&cmd=IpNumGet'>
10 command views 2019-01-25 06:48:40,278 request is <WSGIRequest: GET '/command/?addr_pool_id=119&cmd=IpNumGet'>
10 command views 2019-01-25 06:48:40,280 return is {'response': 'The command completed successfully.', 'num': 1}
10 command views 2019-01-25 06:48:40,286 return is {'response': 'The command completed successfully.', 'num': 1}
10 command views 2019-01-25 06:48:40,302 request is <WSGIRequest: GET '/command/?addr_pool_id=0&cmd=IpNumGet'>
10 command views 2019-01-25 06:48:40,308 return is {'response': 'The command completed successfully.', 'num': 0}
10 command views 2019-01-25 06:49:02,172 request is <WSGIRequest: GET '/command/?user_name=demo&server_ip=192.168.11.221&cmd=UserDelete'>
10 command views 2019-01-25 06:49:07,468 return is {'error': 'Connection to the server has failed'}
10 command views 2019-01-25 07:02:35,200 request is <WSGIRequest: GET '/command/?user_name=test221&server_ip=192.168.11.221&cmd=UserCreate&user_pwd=111111'>
10 command views 2019-01-25 07:02:40,524 return is {'error': 'Connection to the server has failed'}
10 command views 2019-01-25 07:36:12,817 request is <WSGIRequest: GET '/command/?user_name=demo&server_ip=192.168.11.221&cmd=UserDelete'>
10 command views 2019-01-25 07:38:51,305 request is <WSGIRequest: GET '/command/?user_name=demo&server_ip=192.168.11.221&cmd=UserDelete'>
10 command views 2019-01-25 07:42:53,788 request is <WSGIRequest: GET '/command/?addr_pool_id=119&cmd=IpNumGet'>
10 command views 2019-01-25 07:42:53,795 request is <WSGIRequest: GET '/command/?addr_pool_id=120&cmd=IpNumGet'>
10 command views 2019-01-25 07:42:53,798 request is <WSGIRequest: GET '/command/?addr_pool_id=0&cmd=IpNumGet'>
10 command views 2019-01-25 07:42:53,803 return is {'response': 'The command completed successfully.', 'num': 0}
10 command views 2019-01-25 07:43:05,004 request is <WSGIRequest: GET '/command/?addr_pool_id=0&cmd=IpNumGet'>
10 command views 2019-01-25 07:43:05,008 return is {'response': 'The command completed successfully.', 'num': 0}
10 command views 2019-01-25 07:43:05,016 request is <WSGIRequest: GET '/command/?addr_pool_id=73&cmd=IpNumGet'>
10 command views 2019-01-25 07:43:05,020 return is {'response': 'The command completed successfully.', 'num': 0}
10 command views 2019-01-25 07:43:05,028 request is <WSGIRequest: GET '/command/?addr_pool_id=74&cmd=IpNumGet'>
10 command views 2019-01-25 07:43:05,031 return is {'response': 'The command completed successfully.', 'num': 0}
10 command views 2019-01-25 07:43:05,040 request is <WSGIRequest: GET '/command/?addr_pool_id=119&cmd=IpNumGet'>
10 command views 2019-01-25 07:43:05,052 request is <WSGIRequest: GET '/command/?addr_pool_id=120&cmd=IpNumGet'>
10 command views 2019-01-25 07:43:30,981 request is <WSGIRequest: GET '/command/?addr_pool_id=120&cmd=IpNumGet'>
10 command views 2019-01-25 07:43:30,989 request is <WSGIRequest: GET '/command/?addr_pool_id=119&cmd=IpNumGet'>
10 command views 2019-01-25 07:43:30,991 request is <WSGIRequest: GET '/command/?addr_pool_id=0&cmd=IpNumGet'>
10 command views 2019-01-25 07:43:30,997 return is {'response': 'The command completed successfully.', 'num': 0}
10 command views 2019-01-25 07:43:33,061 request is <WSGIRequest: GET '/command/?addr_pool_id=120&cmd=AllIpGet'>
10 command views 2019-01-25 07:43:33,065 return is {'response': 'The command completed successfully.', 'candidate_ip': ['192.168.11.60']}
10 command views 2019-01-25 07:43:37,309 request is <WSGIRequest: GET '/command/?addr_pool_id=119&cmd=AllIpGet'>
10 command views 2019-01-25 07:43:37,313 return is {'response': 'The command completed successfully.', 'candidate_ip': ['192.168.11.77']}
10 command views 2019-01-25 07:43:43,634 request is <WSGIRequest: GET '/command/?addr_pool_id=0&cmd=IpNumGet'>
10 command views 2019-01-25 07:43:43,638 return is {'response': 'The command completed successfully.', 'num': 0}
10 command views 2019-01-25 07:43:43,646 request is <WSGIRequest: GET '/command/?addr_pool_id=73&cmd=IpNumGet'>
10 command views 2019-01-25 07:43:43,649 return is {'response': 'The command completed successfully.', 'num': 0}
10 command views 2019-01-25 07:43:43,656 request is <WSGIRequest: GET '/command/?addr_pool_id=74&cmd=IpNumGet'>
10 command views 2019-01-25 07:43:43,660 return is {'response': 'The command completed successfully.', 'num': 0}
10 command views 2019-01-25 07:43:43,668 request is <WSGIRequest: GET '/command/?addr_pool_id=119&cmd=IpNumGet'>
10 command views 2019-01-25 07:43:43,679 request is <WSGIRequest: GET '/command/?addr_pool_id=120&cmd=IpNumGet'>
10 command views 2019-01-25 07:48:15,688 request is <WSGIRequest: GET '/command/?addr_pool_id=0&cmd=IpNumGet'>
10 command views 2019-01-25 07:48:15,690 request is <WSGIRequest: GET '/command/?addr_pool_id=119&cmd=IpNumGet'>
10 command views 2019-01-25 07:48:15,691 request is <WSGIRequest: GET '/command/?addr_pool_id=120&cmd=IpNumGet'>
10 command views 2019-01-25 07:48:15,693 return is {'response': 'The command completed successfully.', 'num': 0}
10 command views 2019-01-25 07:48:27,841 request is <WSGIRequest: GET '/command/?addr_pool_id=119&cmd=IpNumGet'>
10 command views 2019-01-25 07:48:27,848 request is <WSGIRequest: GET '/command/?addr_pool_id=120&cmd=IpNumGet'>
10 command views 2019-01-25 07:48:27,850 request is <WSGIRequest: GET '/command/?addr_pool_id=0&cmd=IpNumGet'>
10 command views 2019-01-25 07:48:27,855 return is {'response': 'The command completed successfully.', 'num': 0}
10 command views 2019-01-25 07:48:28,819 request is <WSGIRequest: GET '/command/?addr_pool_id=120&cmd=AllIpGet'>
10 command views 2019-01-25 07:48:28,823 return is {'response': 'The command completed successfully.', 'candidate_ip': ['192.168.11.60']}
10 command views 2019-01-25 07:48:32,507 request is <WSGIRequest: GET '/command/?addr_pool_id=119&cmd=AllIpGet'>
10 command views 2019-01-25 07:48:32,510 return is {'response': 'The command completed successfully.', 'candidate_ip': ['192.168.11.77']}

28
log/error.log Normal file
View File

@@ -0,0 +1,28 @@
40 command views 2019-01-25 07:36:18,171 request is <WSGIRequest: GET '/command/?user_name=demo&server_ip=192.168.11.221&cmd=UserDelete'>
40 command views 2019-01-25 07:36:18,171 return is {'error': 'Connection to the server has failed'}
40 command views 2019-01-25 07:38:56,580 request is <WSGIRequest: GET '/command/?user_name=demo&server_ip=192.168.11.221&cmd=UserDelete'>
40 command views 2019-01-25 07:38:56,580 return is {'error': 'Connection to the server has failed'}
40 command views 2019-01-25 07:42:53,799 request is <WSGIRequest: GET '/command/?addr_pool_id=119&cmd=IpNumGet'>
40 command views 2019-01-25 07:42:53,800 return is {'response': 'The command completed successfully.', 'num': 1}
40 command views 2019-01-25 07:42:53,801 request is <WSGIRequest: GET '/command/?addr_pool_id=120&cmd=IpNumGet'>
40 command views 2019-01-25 07:42:53,801 return is {'response': 'The command completed successfully.', 'num': 1}
40 command views 2019-01-25 07:43:05,044 request is <WSGIRequest: GET '/command/?addr_pool_id=119&cmd=IpNumGet'>
40 command views 2019-01-25 07:43:05,044 return is {'response': 'The command completed successfully.', 'num': 1}
40 command views 2019-01-25 07:43:05,056 request is <WSGIRequest: GET '/command/?addr_pool_id=120&cmd=IpNumGet'>
40 command views 2019-01-25 07:43:05,056 return is {'response': 'The command completed successfully.', 'num': 1}
40 command views 2019-01-25 07:43:30,994 request is <WSGIRequest: GET '/command/?addr_pool_id=120&cmd=IpNumGet'>
40 command views 2019-01-25 07:43:30,995 return is {'response': 'The command completed successfully.', 'num': 1}
40 command views 2019-01-25 07:43:30,996 request is <WSGIRequest: GET '/command/?addr_pool_id=119&cmd=IpNumGet'>
40 command views 2019-01-25 07:43:30,996 return is {'response': 'The command completed successfully.', 'num': 1}
40 command views 2019-01-25 07:43:43,672 request is <WSGIRequest: GET '/command/?addr_pool_id=119&cmd=IpNumGet'>
40 command views 2019-01-25 07:43:43,672 return is {'response': 'The command completed successfully.', 'num': 1}
40 command views 2019-01-25 07:43:43,683 request is <WSGIRequest: GET '/command/?addr_pool_id=120&cmd=IpNumGet'>
40 command views 2019-01-25 07:43:43,683 return is {'response': 'The command completed successfully.', 'num': 1}
40 command views 2019-01-25 07:48:15,696 request is <WSGIRequest: GET '/command/?addr_pool_id=119&cmd=IpNumGet'>
40 command views 2019-01-25 07:48:15,696 return is {'response': 'The command completed successfully.', 'num': 1}
40 command views 2019-01-25 07:48:15,696 request is <WSGIRequest: GET '/command/?addr_pool_id=120&cmd=IpNumGet'>
40 command views 2019-01-25 07:48:15,697 return is {'response': 'The command completed successfully.', 'num': 1}
40 command views 2019-01-25 07:48:27,853 request is <WSGIRequest: GET '/command/?addr_pool_id=119&cmd=IpNumGet'>
40 command views 2019-01-25 07:48:27,853 return is {'response': 'The command completed successfully.', 'num': 1}
40 command views 2019-01-25 07:48:27,855 request is <WSGIRequest: GET '/command/?addr_pool_id=120&cmd=IpNumGet'>
40 command views 2019-01-25 07:48:27,855 return is {'response': 'The command completed successfully.', 'num': 1}