-
Notifications
You must be signed in to change notification settings - Fork 0
/
web_app.log
84 lines (84 loc) · 29 KB
/
web_app.log
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
{"level":"INFO","time":"2022-02-19T11:07:54.631+0800","caller":"logger/logger.go:45","msg":"init logger success"}
{"level":"INFO","time":"2022-02-19T12:13:08.836+0800","caller":"logger/logger.go:45","msg":"init logger success"}
{"level":"INFO","time":"2022-02-19T12:15:14.495+0800","caller":"logger/logger.go:45","msg":"init logger success"}
{"level":"INFO","time":"2022-02-19T12:16:25.988+0800","caller":"logger/logger.go:78","msg":"/","status":200,"method":"GET","path":"/","query":"","ip":"127.0.0.1","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36","errors":"","cost":0.0008234}
{"level":"INFO","time":"2022-02-19T12:16:26.058+0800","caller":"logger/logger.go:78","msg":"/static/css/app.50fb5caf.css","status":200,"method":"GET","path":"/static/css/app.50fb5caf.css","query":"","ip":"127.0.0.1","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36","errors":"","cost":0.0544549}
{"level":"INFO","time":"2022-02-19T12:16:26.058+0800","caller":"logger/logger.go:78","msg":"/static/js/app.7fce8887.js","status":200,"method":"GET","path":"/static/js/app.7fce8887.js","query":"","ip":"127.0.0.1","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36","errors":"","cost":0.0540352}
{"level":"INFO","time":"2022-02-19T12:16:26.059+0800","caller":"logger/logger.go:78","msg":"/static/js/chunk-vendors.57f9e9d6.js","status":200,"method":"GET","path":"/static/js/chunk-vendors.57f9e9d6.js","query":"","ip":"127.0.0.1","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36","errors":"","cost":0.0540259}
{"level":"INFO","time":"2022-02-19T12:16:26.084+0800","caller":"logger/logger.go:78","msg":"/static/img/logo.da56125f.png","status":200,"method":"GET","path":"/static/img/logo.da56125f.png","query":"","ip":"127.0.0.1","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36","errors":"","cost":0.0001643}
{"level":"INFO","time":"2022-02-19T12:16:26.084+0800","caller":"logger/logger.go:78","msg":"/static/img/search.8e85063d.png","status":200,"method":"GET","path":"/static/img/search.8e85063d.png","query":"","ip":"127.0.0.1","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36","errors":"","cost":0}
{"level":"INFO","time":"2022-02-19T12:16:26.092+0800","caller":"logger/logger.go:78","msg":"/static/img/avatar.7b0a9835.png","status":200,"method":"GET","path":"/static/img/avatar.7b0a9835.png","query":"","ip":"127.0.0.1","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36","errors":"","cost":0.0007176}
{"level":"INFO","time":"2022-02-19T12:16:26.121+0800","caller":"logger/logger.go:78","msg":"/static/favicon.ico","status":200,"method":"GET","path":"/static/favicon.ico","query":"","ip":"127.0.0.1","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36","errors":"","cost":0.0007079}
{"level":"ERROR","time":"2022-02-19T12:16:29.083+0800","caller":"logic/post.go:213","msg":"GetPostListNew failed","error":"read tcp 192.168.3.21:60613->45.64.113.143:26379: i/o timeout"}
{"level":"ERROR","time":"2022-02-19T12:16:29.083+0800","caller":"controller/post.go:108","msg":"logic.GetPostList() failed","error":"read tcp 192.168.3.21:60613->45.64.113.143:26379: i/o timeout"}
{"level":"INFO","time":"2022-02-19T12:16:29.083+0800","caller":"logger/logger.go:78","msg":"/api/v1/posts2","status":200,"method":"GET","path":"/api/v1/posts2","query":"page=1&order=time","ip":"127.0.0.1","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36","errors":"","cost":3.0000509}
{"level":"INFO","time":"2022-02-19T12:16:32.907+0800","caller":"logger/logger.go:78","msg":"/","status":200,"method":"GET","path":"/","query":"","ip":"127.0.0.1","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36","errors":"","cost":0}
{"level":"WARN","time":"2022-02-19T12:16:33.300+0800","caller":"logic/post.go:102","msg":"redis.GetPostIDsInOrder(p) return 0 data"}
{"level":"INFO","time":"2022-02-19T12:16:33.300+0800","caller":"logger/logger.go:78","msg":"/api/v1/posts2","status":200,"method":"GET","path":"/api/v1/posts2","query":"page=1&order=time","ip":"127.0.0.1","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36","errors":"","cost":0.3705702}
{"level":"INFO","time":"2022-02-19T12:18:36.113+0800","caller":"logger/logger.go:45","msg":"init logger success"}
{"level":"INFO","time":"2022-02-19T12:19:28.534+0800","caller":"logger/logger.go:45","msg":"init logger success"}
{"level":"INFO","time":"2022-02-19T12:20:33.976+0800","caller":"logger/logger.go:78","msg":"/","status":200,"method":"GET","path":"/","query":"","ip":"127.0.0.1","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36","errors":"","cost":0.0006419}
{"level":"INFO","time":"2022-02-19T12:20:34.045+0800","caller":"logger/logger.go:78","msg":"/static/js/app.7fce8887.js","status":200,"method":"GET","path":"/static/js/app.7fce8887.js","query":"","ip":"127.0.0.1","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36","errors":"","cost":0.0538262}
{"level":"INFO","time":"2022-02-19T12:20:34.045+0800","caller":"logger/logger.go:78","msg":"/static/css/app.50fb5caf.css","status":200,"method":"GET","path":"/static/css/app.50fb5caf.css","query":"","ip":"127.0.0.1","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36","errors":"","cost":0.0543387}
{"level":"INFO","time":"2022-02-19T12:20:34.045+0800","caller":"logger/logger.go:78","msg":"/static/js/chunk-vendors.57f9e9d6.js","status":200,"method":"GET","path":"/static/js/chunk-vendors.57f9e9d6.js","query":"","ip":"127.0.0.1","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36","errors":"","cost":0.0537409}
{"level":"INFO","time":"2022-02-19T12:20:34.072+0800","caller":"logger/logger.go:78","msg":"/static/img/logo.da56125f.png","status":200,"method":"GET","path":"/static/img/logo.da56125f.png","query":"","ip":"127.0.0.1","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36","errors":"","cost":0.0005038}
{"level":"INFO","time":"2022-02-19T12:20:34.072+0800","caller":"logger/logger.go:78","msg":"/static/img/search.8e85063d.png","status":200,"method":"GET","path":"/static/img/search.8e85063d.png","query":"","ip":"127.0.0.1","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36","errors":"","cost":0.0005163}
{"level":"INFO","time":"2022-02-19T12:20:34.079+0800","caller":"logger/logger.go:78","msg":"/static/img/avatar.7b0a9835.png","status":200,"method":"GET","path":"/static/img/avatar.7b0a9835.png","query":"","ip":"127.0.0.1","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36","errors":"","cost":0.0005392}
{"level":"WARN","time":"2022-02-19T12:20:34.254+0800","caller":"logic/post.go:102","msg":"redis.GetPostIDsInOrder(p) return 0 data"}
{"level":"INFO","time":"2022-02-19T12:20:34.255+0800","caller":"logger/logger.go:78","msg":"/api/v1/posts2","status":200,"method":"GET","path":"/api/v1/posts2","query":"page=1&order=time","ip":"127.0.0.1","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36","errors":"","cost":0.183777}
{"level":"INFO","time":"2022-02-19T12:32:39.189+0800","caller":"logger/logger.go:78","msg":"/","status":200,"method":"GET","path":"/","query":"","ip":"192.168.3.51","user-agent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0","errors":"","cost":0}
{"level":"INFO","time":"2022-02-19T12:32:39.215+0800","caller":"logger/logger.go:78","msg":"/static/css/app.50fb5caf.css","status":200,"method":"GET","path":"/static/css/app.50fb5caf.css","query":"","ip":"192.168.3.51","user-agent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0","errors":"","cost":0.0008476}
{"level":"INFO","time":"2022-02-19T12:32:39.215+0800","caller":"logger/logger.go:78","msg":"/static/js/app.7fce8887.js","status":200,"method":"GET","path":"/static/js/app.7fce8887.js","query":"","ip":"192.168.3.51","user-agent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0","errors":"","cost":0}
{"level":"INFO","time":"2022-02-19T12:32:41.323+0800","caller":"logger/logger.go:78","msg":"/static/js/chunk-vendors.57f9e9d6.js","status":200,"method":"GET","path":"/static/js/chunk-vendors.57f9e9d6.js","query":"","ip":"192.168.3.51","user-agent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0","errors":"","cost":2.1023093}
{"level":"INFO","time":"2022-02-19T12:32:42.224+0800","caller":"logger/logger.go:78","msg":"/static/favicon.ico","status":200,"method":"GET","path":"/static/favicon.ico","query":"","ip":"192.168.3.51","user-agent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0","errors":"","cost":0.0039773}
{"level":"INFO","time":"2022-02-19T12:32:44.372+0800","caller":"logger/logger.go:78","msg":"/static/img/logo.da56125f.png","status":200,"method":"GET","path":"/static/img/logo.da56125f.png","query":"","ip":"192.168.3.51","user-agent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0","errors":"","cost":0.0002499}
{"level":"INFO","time":"2022-02-19T12:32:44.373+0800","caller":"logger/logger.go:78","msg":"/static/img/search.8e85063d.png","status":200,"method":"GET","path":"/static/img/search.8e85063d.png","query":"","ip":"192.168.3.51","user-agent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0","errors":"","cost":0}
{"level":"INFO","time":"2022-02-19T12:32:44.375+0800","caller":"logger/logger.go:78","msg":"/static/img/avatar.7b0a9835.png","status":200,"method":"GET","path":"/static/img/avatar.7b0a9835.png","query":"","ip":"192.168.3.51","user-agent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0","errors":"","cost":0}
{"level":"WARN","time":"2022-02-19T12:32:44.739+0800","caller":"logic/post.go:102","msg":"redis.GetPostIDsInOrder(p) return 0 data"}
{"level":"INFO","time":"2022-02-19T12:32:44.739+0800","caller":"logger/logger.go:78","msg":"/api/v1/posts2","status":200,"method":"GET","path":"/api/v1/posts2","query":"page=1&order=time","ip":"192.168.3.51","user-agent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0","errors":"","cost":0.3698829}
{"level":"INFO","time":"2022-02-19T12:33:41.736+0800","caller":"logger/logger.go:78","msg":"/","status":200,"method":"GET","path":"/","query":"","ip":"192.168.3.51","user-agent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0","errors":"","cost":0}
{"level":"WARN","time":"2022-02-19T12:33:42.001+0800","caller":"logic/post.go:102","msg":"redis.GetPostIDsInOrder(p) return 0 data"}
{"level":"INFO","time":"2022-02-19T12:33:42.002+0800","caller":"logger/logger.go:78","msg":"/api/v1/posts2","status":200,"method":"GET","path":"/api/v1/posts2","query":"page=1&order=time","ip":"192.168.3.51","user-agent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0","errors":"","cost":0.1837199}
{"level":"INFO","time":"2023-01-14T15:51:00.446+0800","caller":"logger/logger.go:45","msg":"init logger success"}
{"level":"INFO","time":"2023-01-14T15:59:08.657+0800","caller":"logger/logger.go:45","msg":"init logger success"}
{"level":"INFO","time":"2023-01-21T12:35:08.400+0800","caller":"logger/logger.go:45","msg":"init logger success"}
{"level":"INFO","time":"2023-01-21T12:38:22.170+0800","caller":"logger/logger.go:45","msg":"init logger success"}
{"level":"INFO","time":"2023-01-21T12:38:54.640+0800","caller":"logger/logger.go:45","msg":"init logger success"}
{"level":"INFO","time":"2023-01-21T12:40:29.286+0800","caller":"logger/logger.go:45","msg":"init logger success"}
{"level":"INFO","time":"2023-01-21T12:42:14.166+0800","caller":"logger/logger.go:45","msg":"init logger success"}
{"level":"INFO","time":"2023-01-21T12:49:41.705+0800","caller":"logger/logger.go:45","msg":"init logger success"}
{"level":"INFO","time":"2023-01-21T12:50:57.347+0800","caller":"logger/logger.go:45","msg":"init logger success"}
{"level":"INFO","time":"2023-01-21T12:51:29.984+0800","caller":"logger/logger.go:45","msg":"init logger success"}
{"level":"INFO","time":"2023-01-21T12:52:03.099+0800","caller":"logger/logger.go:78","msg":"/","status":200,"method":"GET","path":"/","query":"","ip":"127.0.0.1","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36","errors":"","cost":0.000168733}
{"level":"INFO","time":"2023-01-21T12:52:03.166+0800","caller":"logger/logger.go:78","msg":"/static/css/app.50fb5caf.css","status":200,"method":"GET","path":"/static/css/app.50fb5caf.css","query":"","ip":"127.0.0.1","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36","errors":"","cost":0.0085764}
{"level":"INFO","time":"2023-01-21T12:52:03.166+0800","caller":"logger/logger.go:78","msg":"/static/js/app.7fce8887.js","status":200,"method":"GET","path":"/static/js/app.7fce8887.js","query":"","ip":"127.0.0.1","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36","errors":"","cost":0.007014526}
{"level":"INFO","time":"2023-01-21T12:52:03.169+0800","caller":"logger/logger.go:78","msg":"/static/js/chunk-vendors.57f9e9d6.js","status":200,"method":"GET","path":"/static/js/chunk-vendors.57f9e9d6.js","query":"","ip":"127.0.0.1","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36","errors":"","cost":0.009609005}
{"level":"ERROR","time":"2023-01-21T12:52:03.229+0800","caller":"logger/logger.go:120","msg":"[Recovery from panic]","error":"runtime error: invalid memory address or nil pointer dereference","request":"GET /api/v1/posts2?page=1&order=time HTTP/1.1\r\nHost: 127.0.0.1:8084\r\nAccept: application/json, text/plain, */*\r\nAccept-Encoding: gzip, deflate, br\r\nAccept-Language: zh-CN,zh;q=0.9\r\nConnection: keep-alive\r\nReferer: http://127.0.0.1:8084/\r\nSec-Ch-Ua: \"Not_A Brand\";v=\"99\", \"Google Chrome\";v=\"109\", \"Chromium\";v=\"109\"\r\nSec-Ch-Ua-Mobile: ?0\r\nSec-Ch-Ua-Platform: \"macOS\"\r\nSec-Fetch-Dest: empty\r\nSec-Fetch-Mode: cors\r\nSec-Fetch-Site: same-origin\r\nUser-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36\r\n\r\n","stack":"goroutine 37 [running]:\nruntime/debug.Stack()\n\t/usr/local/go/src/runtime/debug/stack.go:24 +0x65\nfranmework/logger.GinRecovery.func1.1()\n\t/Users/pgh/go/src/gin-framework/logger/logger.go:123 +0x2cc\npanic({0x1784400, 0x2eeb520})\n\t/usr/local/go/src/runtime/panic.go:838 +0x207\nfranmework/dao/redis.getIDsFormKey({0xc0000400d8?, 0x184cb32?}, 0x10164af?, 0x184b678?)\n\t/Users/pgh/go/src/gin-framework/dao/redis/post.go:15 +0x20\nfranmework/dao/redis.GetPostIDsInOrder(0xc0002f4120)\n\t/Users/pgh/go/src/gin-framework/dao/redis/post.go:26 +0x8e\nfranmework/logic.GetPostList2(0xc0002f4120?)\n\t/Users/pgh/go/src/gin-framework/logic/post.go:97 +0x2e\nfranmework/logic.GetPostListNew(0x17a9ee0?)\n\t/Users/pgh/go/src/gin-framework/logic/post.go:207 +0x31\nfranmework/controller.GetPostListHandler2(0xc0008500f0)\n\t/Users/pgh/go/src/gin-framework/controller/post.go:105 +0x205\ngit.luolix.top/gin-gonic/gin.(*Context).Next(...)\n\t/Users/pgh/go/pkg/mod/github.com/gin-gonic/gin@v1.6.3/context.go:161\nfranmework/logger.GinRecovery.func1(0xc0008500f0)\n\t/Users/pgh/go/src/gin-framework/logger/logger.go:134 +0x76\ngit.luolix.top/gin-gonic/gin.(*Context).Next(...)\n\t/Users/pgh/go/pkg/mod/github.com/gin-gonic/gin@v1.6.3/context.go:161\nfranmework/logger.GinLogger.func1(0xc0008500f0)\n\t/Users/pgh/go/src/gin-framework/logger/logger.go:75 +0xa2\ngit.luolix.top/gin-gonic/gin.(*Context).Next(...)\n\t/Users/pgh/go/pkg/mod/github.com/gin-gonic/gin@v1.6.3/context.go:161\ngit.luolix.top/gin-gonic/gin.(*Engine).handleHTTPRequest(0xc0002bb7c0, 0xc0008500f0)\n\t/Users/pgh/go/pkg/mod/github.com/gin-gonic/gin@v1.6.3/gin.go:409 +0x6c5\ngit.luolix.top/gin-gonic/gin.(*Engine).ServeHTTP(0xc0002bb7c0, {0x197b360?, 0xc0008bc0e0}, 0xc0008b8000)\n\t/Users/pgh/go/pkg/mod/github.com/gin-gonic/gin@v1.6.3/gin.go:367 +0x1b4\nnet/http.serverHandler.ServeHTTP({0xc00007e300?}, {0x197b360, 0xc0008bc0e0}, 0xc0008b8000)\n\t/usr/local/go/src/net/http/server.go:2916 +0x43b\nnet/http.(*conn).serve(0xc0001f61e0, {0x197bbe8, 0xc0004c6e10})\n\t/usr/local/go/src/net/http/server.go:1966 +0x5d7\ncreated by net/http.(*Server).Serve\n\t/usr/local/go/src/net/http/server.go:3071 +0x4db\n"}
{"level":"INFO","time":"2023-01-21T12:52:03.229+0800","caller":"logger/logger.go:78","msg":"/api/v1/posts2","status":500,"method":"GET","path":"/api/v1/posts2","query":"page=1&order=time","ip":"127.0.0.1","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36","errors":"","cost":0.0006493}
{"level":"INFO","time":"2023-01-21T12:52:03.229+0800","caller":"logger/logger.go:78","msg":"/static/img/search.8e85063d.png","status":200,"method":"GET","path":"/static/img/search.8e85063d.png","query":"","ip":"127.0.0.1","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36","errors":"","cost":0.000448566}
{"level":"INFO","time":"2023-01-21T12:52:03.229+0800","caller":"logger/logger.go:78","msg":"/static/img/logo.da56125f.png","status":200,"method":"GET","path":"/static/img/logo.da56125f.png","query":"","ip":"127.0.0.1","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36","errors":"","cost":0.000689454}
{"level":"INFO","time":"2023-01-21T12:52:03.255+0800","caller":"logger/logger.go:78","msg":"/static/img/avatar.7b0a9835.png","status":200,"method":"GET","path":"/static/img/avatar.7b0a9835.png","query":"","ip":"127.0.0.1","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36","errors":"","cost":0.000950951}
{"level":"INFO","time":"2023-01-21T12:52:03.306+0800","caller":"logger/logger.go:78","msg":"/static/favicon.ico","status":200,"method":"GET","path":"/static/favicon.ico","query":"","ip":"127.0.0.1","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36","errors":"","cost":0.000290533}
{"level":"INFO","time":"2023-01-21T12:52:06.026+0800","caller":"logger/logger.go:78","msg":"/","status":200,"method":"GET","path":"/","query":"","ip":"127.0.0.1","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36","errors":"","cost":0.000010473}
{"level":"ERROR","time":"2023-01-21T12:52:06.053+0800","caller":"logger/logger.go:120","msg":"[Recovery from panic]","error":"runtime error: invalid memory address or nil pointer dereference","request":"GET /api/v1/posts2?page=1&order=time HTTP/1.1\r\nHost: 127.0.0.1:8084\r\nAccept: application/json, text/plain, */*\r\nAccept-Encoding: gzip, deflate, br\r\nAccept-Language: zh-CN,zh;q=0.9\r\nConnection: keep-alive\r\nReferer: http://127.0.0.1:8084/\r\nSec-Ch-Ua: \"Not_A Brand\";v=\"99\", \"Google Chrome\";v=\"109\", \"Chromium\";v=\"109\"\r\nSec-Ch-Ua-Mobile: ?0\r\nSec-Ch-Ua-Platform: \"macOS\"\r\nSec-Fetch-Dest: empty\r\nSec-Fetch-Mode: cors\r\nSec-Fetch-Site: same-origin\r\nUser-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36\r\n\r\n","stack":"goroutine 50 [running]:\nruntime/debug.Stack()\n\t/usr/local/go/src/runtime/debug/stack.go:24 +0x65\nfranmework/logger.GinRecovery.func1.1()\n\t/Users/pgh/go/src/gin-framework/logger/logger.go:123 +0x2cc\npanic({0x1784400, 0x2eeb520})\n\t/usr/local/go/src/runtime/panic.go:838 +0x207\nfranmework/dao/redis.getIDsFormKey({0xc00061e060?, 0x184cb32?}, 0x10164af?, 0x184b678?)\n\t/Users/pgh/go/src/gin-framework/dao/redis/post.go:15 +0x20\nfranmework/dao/redis.GetPostIDsInOrder(0xc0003d00f0)\n\t/Users/pgh/go/src/gin-framework/dao/redis/post.go:26 +0x8e\nfranmework/logic.GetPostList2(0xc0003d00f0?)\n\t/Users/pgh/go/src/gin-framework/logic/post.go:97 +0x2e\nfranmework/logic.GetPostListNew(0x17a9ee0?)\n\t/Users/pgh/go/src/gin-framework/logic/post.go:207 +0x31\nfranmework/controller.GetPostListHandler2(0xc000348000)\n\t/Users/pgh/go/src/gin-framework/controller/post.go:105 +0x205\ngit.luolix.top/gin-gonic/gin.(*Context).Next(...)\n\t/Users/pgh/go/pkg/mod/github.com/gin-gonic/gin@v1.6.3/context.go:161\nfranmework/logger.GinRecovery.func1(0xc000348000)\n\t/Users/pgh/go/src/gin-framework/logger/logger.go:134 +0x76\ngit.luolix.top/gin-gonic/gin.(*Context).Next(...)\n\t/Users/pgh/go/pkg/mod/github.com/gin-gonic/gin@v1.6.3/context.go:161\nfranmework/logger.GinLogger.func1(0xc000348000)\n\t/Users/pgh/go/src/gin-framework/logger/logger.go:75 +0xa2\ngit.luolix.top/gin-gonic/gin.(*Context).Next(...)\n\t/Users/pgh/go/pkg/mod/github.com/gin-gonic/gin@v1.6.3/context.go:161\ngit.luolix.top/gin-gonic/gin.(*Engine).handleHTTPRequest(0xc0002bb7c0, 0xc000348000)\n\t/Users/pgh/go/pkg/mod/github.com/gin-gonic/gin@v1.6.3/gin.go:409 +0x6c5\ngit.luolix.top/gin-gonic/gin.(*Engine).ServeHTTP(0xc0002bb7c0, {0x197b360?, 0xc0006280e0}, 0xc000314b00)\n\t/Users/pgh/go/pkg/mod/github.com/gin-gonic/gin@v1.6.3/gin.go:367 +0x1b4\nnet/http.serverHandler.ServeHTTP({0xc000300330?}, {0x197b360, 0xc0006280e0}, 0xc000314b00)\n\t/usr/local/go/src/net/http/server.go:2916 +0x43b\nnet/http.(*conn).serve(0xc00016c000, {0x197bbe8, 0xc0004c6e10})\n\t/usr/local/go/src/net/http/server.go:1966 +0x5d7\ncreated by net/http.(*Server).Serve\n\t/usr/local/go/src/net/http/server.go:3071 +0x4db\n"}
{"level":"INFO","time":"2023-01-21T12:52:06.053+0800","caller":"logger/logger.go:78","msg":"/api/v1/posts2","status":500,"method":"GET","path":"/api/v1/posts2","query":"page=1&order=time","ip":"127.0.0.1","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36","errors":"","cost":0.000466732}
{"level":"INFO","time":"2023-01-21T12:52:42.675+0800","caller":"logger/logger.go:45","msg":"init logger success"}
{"level":"INFO","time":"2023-01-21T12:52:44.769+0800","caller":"logger/logger.go:78","msg":"/login","status":200,"method":"GET","path":"/login","query":"","ip":"127.0.0.1","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36","errors":"","cost":0.000048556}
{"level":"INFO","time":"2023-01-21T12:52:44.799+0800","caller":"logger/logger.go:78","msg":"/favicon.ico","status":200,"method":"GET","path":"/favicon.ico","query":"","ip":"127.0.0.1","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36","errors":"","cost":0.000018152}
{"level":"INFO","time":"2023-01-21T12:52:46.251+0800","caller":"logger/logger.go:78","msg":"/login","status":200,"method":"GET","path":"/login","query":"","ip":"127.0.0.1","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36","errors":"","cost":0.000017683}
{"level":"INFO","time":"2023-01-21T12:52:46.269+0800","caller":"logger/logger.go:78","msg":"/favicon.ico","status":200,"method":"GET","path":"/favicon.ico","query":"","ip":"127.0.0.1","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36","errors":"","cost":0.00001528}
{"level":"INFO","time":"2023-01-21T12:52:50.090+0800","caller":"logger/logger.go:78","msg":"/login","status":200,"method":"GET","path":"/login","query":"","ip":"127.0.0.1","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36","errors":"","cost":0.000015544}
{"level":"INFO","time":"2023-01-21T12:52:50.115+0800","caller":"logger/logger.go:78","msg":"/favicon.ico","status":200,"method":"GET","path":"/favicon.ico","query":"","ip":"127.0.0.1","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36","errors":"","cost":0.000010415}
{"level":"INFO","time":"2023-01-21T12:52:53.273+0800","caller":"logger/logger.go:78","msg":"/","status":200,"method":"GET","path":"/","query":"","ip":"127.0.0.1","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36","errors":"","cost":0.003082395}
{"level":"WARN","time":"2023-01-21T12:52:53.294+0800","caller":"logic/post.go:102","msg":"redis.GetPostIDsInOrder(p) return 0 data"}
{"level":"INFO","time":"2023-01-21T12:52:53.294+0800","caller":"logger/logger.go:78","msg":"/api/v1/posts2","status":200,"method":"GET","path":"/api/v1/posts2","query":"page=1&order=time","ip":"127.0.0.1","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36","errors":"","cost":0.002301826}
{"level":"INFO","time":"2023-01-21T12:53:03.446+0800","caller":"logger/logger.go:78","msg":"/swagger/index.html","status":200,"method":"GET","path":"/swagger/index.html","query":"","ip":"127.0.0.1","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36","errors":"","cost":0.000206992}
{"level":"INFO","time":"2023-01-21T12:53:03.469+0800","caller":"logger/logger.go:78","msg":"/swagger/swagger-ui.css","status":200,"method":"GET","path":"/swagger/swagger-ui.css","query":"","ip":"127.0.0.1","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36","errors":"","cost":0.000181282}
{"level":"INFO","time":"2023-01-21T12:53:03.470+0800","caller":"logger/logger.go:78","msg":"/swagger/swagger-ui-standalone-preset.js","status":200,"method":"GET","path":"/swagger/swagger-ui-standalone-preset.js","query":"","ip":"127.0.0.1","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36","errors":"","cost":0.000333335}
{"level":"INFO","time":"2023-01-21T12:53:03.481+0800","caller":"logger/logger.go:78","msg":"/swagger/swagger-ui-bundle.js","status":200,"method":"GET","path":"/swagger/swagger-ui-bundle.js","query":"","ip":"127.0.0.1","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36","errors":"","cost":0.011778531}
{"level":"INFO","time":"2023-01-21T12:53:03.838+0800","caller":"logger/logger.go:78","msg":"/swagger/doc.json","status":200,"method":"GET","path":"/swagger/doc.json","query":"","ip":"127.0.0.1","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36","errors":"","cost":0.00029695}
{"level":"INFO","time":"2023-01-21T12:53:03.912+0800","caller":"logger/logger.go:78","msg":"/swagger/favicon-32x32.png","status":200,"method":"GET","path":"/swagger/favicon-32x32.png","query":"","ip":"127.0.0.1","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36","errors":"","cost":0.003320724}
{"level":"INFO","time":"2023-01-21T13:05:02.304+0800","caller":"logger/logger.go:78","msg":"/","status":200,"method":"GET","path":"/","query":"","ip":"127.0.0.1","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36","errors":"","cost":0.000352226}
{"level":"INFO","time":"2023-01-21T13:05:02.347+0800","caller":"logger/logger.go:78","msg":"/static/js/app.7fce8887.js","status":304,"method":"GET","path":"/static/js/app.7fce8887.js","query":"","ip":"127.0.0.1","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36","errors":"","cost":0.000124262}
{"level":"WARN","time":"2023-01-21T13:05:02.405+0800","caller":"logic/post.go:102","msg":"redis.GetPostIDsInOrder(p) return 0 data"}
{"level":"INFO","time":"2023-01-21T13:05:02.405+0800","caller":"logger/logger.go:78","msg":"/api/v1/posts2","status":200,"method":"GET","path":"/api/v1/posts2","query":"page=1&order=time","ip":"127.0.0.1","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36","errors":"","cost":0.0030411}