modify files.

This commit is contained in:
2025-03-14 03:46:41 +00:00
parent 587c31e8cc
commit 089cb11f8c
6 changed files with 73 additions and 9 deletions

View File

@ -226,3 +226,25 @@
{"level":"debug","time":"2024-08-01T18:56:35.139+0800","caller":"aigrammar/main.go:133","func":"main.parseToken","msg":"into func"}
{"level":"info","time":"2024-08-01T18:56:35.139+0800","caller":"aigrammar/main.go:148","func":"main.parseToken","msg":"claims: ","claims":{"deviceID":"12345ABC","gid":10001,"exp1":1727974853}}
{"level":"info","time":"2024-08-01T18:56:35.140+0800","caller":"aigrammar/translate.go:153","func":"main.TranslateFeedBackHandler","msg":"feedback","ID":10001,"feedback":{"product":"trans","input":"This is a demo text with more complex grammar checking algorithm of the pro version. ","output":"","res":"good"}}
{"level":"info","time":"2025-01-18T19:42:46.477+0800","caller":"aigrammar/main.go:48","func":"main.main","msg":"DBManager init successfully. Mysql ","mysql_conn":"172.18.0.3:3306"}
{"level":"debug","time":"2025-01-18T19:43:20.350+0800","caller":"aigrammar/main.go:140","func":"main.parseToken","msg":"into func"}
{"level":"fatal","time":"2025-01-18T19:43:20.355+0800","caller":"aigrammar/main.go:150","func":"main.parseToken","msg":"ParaseToken Error.","error":"signature is invalid","stacktrace":"main.parseToken\n\t/root/aigrammar/main.go:150\ngithub.com/labstack/echo-jwt/v4.Config.ToMiddleware.func2.1\n\t/root/go/pkg/mod/github.com/labstack/echo-jwt/v4@v4.2.0/jwt.go:227\ngithub.com/labstack/echo/v4.(*Echo).add.func1\n\t/root/go/pkg/mod/github.com/labstack/echo/v4@v4.12.0/echo.go:587\nmain.unifiedResponseHandler.func1\n\t/root/aigrammar/format.go:19\nmain.main.Recover.RecoverWithConfig.func2.1\n\t/root/go/pkg/mod/github.com/labstack/echo/v4@v4.12.0/middleware/recover.go:130\ngithub.com/labstack/echo/v4/middleware.RequestLoggerConfig.ToMiddleware.func1.1\n\t/root/go/pkg/mod/github.com/labstack/echo/v4@v4.12.0/middleware/request_logger.go:286\ngithub.com/labstack/echo/v4.(*Echo).ServeHTTP\n\t/root/go/pkg/mod/github.com/labstack/echo/v4@v4.12.0/echo.go:674\nnet/http.serverHandler.ServeHTTP\n\t/usr/local/go/src/net/http/server.go:3137\nnet/http.(*conn).serve\n\t/usr/local/go/src/net/http/server.go:2039"}
{"level":"info","time":"2025-01-18T19:48:25.208+0800","caller":"aigrammar/main.go:48","func":"main.main","msg":"DBManager init successfully. Mysql ","mysql_conn":"172.18.0.3:3306"}
{"level":"debug","time":"2025-01-18T19:49:54.283+0800","caller":"aigrammar/main.go:140","func":"main.parseToken","msg":"into func"}
{"level":"fatal","time":"2025-01-18T19:49:54.288+0800","caller":"aigrammar/main.go:150","func":"main.parseToken","msg":"ParaseToken Error.","error":"signature is invalid","stacktrace":"main.parseToken\n\t/root/aigrammar/main.go:150\ngithub.com/labstack/echo-jwt/v4.Config.ToMiddleware.func2.1\n\t/root/go/pkg/mod/github.com/labstack/echo-jwt/v4@v4.2.0/jwt.go:227\ngithub.com/labstack/echo/v4.(*Echo).add.func1\n\t/root/go/pkg/mod/github.com/labstack/echo/v4@v4.12.0/echo.go:587\nmain.unifiedResponseHandler.func1\n\t/root/aigrammar/format.go:19\nmain.main.Recover.RecoverWithConfig.func2.1\n\t/root/go/pkg/mod/github.com/labstack/echo/v4@v4.12.0/middleware/recover.go:130\ngithub.com/labstack/echo/v4/middleware.RequestLoggerConfig.ToMiddleware.func1.1\n\t/root/go/pkg/mod/github.com/labstack/echo/v4@v4.12.0/middleware/request_logger.go:286\ngithub.com/labstack/echo/v4.(*Echo).ServeHTTP\n\t/root/go/pkg/mod/github.com/labstack/echo/v4@v4.12.0/echo.go:674\nnet/http.serverHandler.ServeHTTP\n\t/usr/local/go/src/net/http/server.go:3137\nnet/http.(*conn).serve\n\t/usr/local/go/src/net/http/server.go:2039"}
{"level":"info","time":"2025-01-18T19:56:22.182+0800","caller":"aigrammar/main.go:48","func":"main.main","msg":"DBManager init successfully. Mysql ","mysql_conn":"172.18.0.3:3306"}
{"level":"debug","time":"2025-01-18T19:56:29.911+0800","caller":"aigrammar/main.go:140","func":"main.parseToken","msg":"into func"}
{"level":"info","time":"2025-01-18T19:56:29.916+0800","caller":"aigrammar/main.go:155","func":"main.parseToken","msg":"claims: ","GID":10001,"DeviceID":"12345ABC","Exp1":1737201299}
{"level":"debug","time":"2025-01-18T20:00:25.259+0800","caller":"aigrammar/main.go:140","func":"main.parseToken","msg":"into func"}
{"level":"info","time":"2025-01-18T20:00:25.260+0800","caller":"aigrammar/main.go:155","func":"main.parseToken","msg":"claims: ","GID":10001,"DeviceID":"12345ABC","Exp1":1737201299}
{"level":"debug","time":"2025-01-18T20:02:30.579+0800","caller":"aigrammar/main.go:140","func":"main.parseToken","msg":"into func"}
{"level":"info","time":"2025-01-18T20:02:30.579+0800","caller":"aigrammar/main.go:155","func":"main.parseToken","msg":"claims: ","GID":10001,"DeviceID":"12345ABC","Exp1":1747201724}
{"level":"warn","time":"2025-01-18T20:02:30.615+0800","caller":"aigrammar/user.go:59","func":"main.queryUserHandler","msg":"userid not match","ID":10003,"userGID":10001}
{"level":"debug","time":"2025-01-18T20:04:37.741+0800","caller":"aigrammar/main.go:140","func":"main.parseToken","msg":"into func"}
{"level":"info","time":"2025-01-18T20:04:37.742+0800","caller":"aigrammar/main.go:155","func":"main.parseToken","msg":"claims: ","GID":10001,"DeviceID":"12345ABC","Exp1":1747201724}
{"level":"debug","time":"2025-01-18T20:04:37.764+0800","caller":"aigrammar/user.go:154","func":"main.queryUserBenefits","msg":"CheckAndDecrement","ID":10001,"timeZone":"Asia/Shanghai","secondsFromGMT":28800,"status":0}
{"level":"warn","time":"2025-01-18T20:04:44.317+0800","caller":"aigrammar/translate.go:243","func":"main.gTranslate","msg":"filterd","Hate":"safe","Hate-filtered":false,"SelfHarm":"safe","SelfHarm-filtered":false,"Sexual":"safe","Sexual-filtered":false,"Violence":"safe","Violence-filtered":false,"Error":"no content","input":"This is a demo text with more complex grammar checking algorithm of the pro version. This app have been designed to help you to write correctly and appear more professional. I work really hard to make this app as god as possible. If you are happy with the results, please consider supporting the app by subscribing to the PRO plan. The text writen here is to show you how much the app is capable of with the pro version. is this something you would like to use?"}
{"level":"debug","time":"2025-01-18T20:04:44.318+0800","caller":"aigrammar/translate.go:262","func":"main.gTranslate","msg":"Finish Reason","index":0,"reason":"stop"}
{"level":"info","time":"2025-01-18T20:04:44.318+0800","caller":"aigrammar/translate.go:48","func":"main.TranslateHandler","msg":"translation","ID":10001,"input":"This is a demo text with more complex grammar checking algorithm of the pro version. This app have been designed to help you to write correctly and appear more professional. I work really hard to make this app as god as possible. If you are happy with the results, please consider supporting the app by subscribing to the PRO plan. The text writen here is to show you how much the app is capable of with the pro version. is this something you would like to use?","output":"这是一个演示文本它使用了更复杂的语法检查算法。这款应用程序的设计是为了帮助您进行正确地写作以显得更加专业。我非常努力地使这款应用尽可能地完美。如果您对结果满意请考虑通过订阅PRO计划来支持这款应用。这里写下的文本是为了向您展示这款应用在专业版本中所能达到的效果。这是您想要使用的吗"}
{"level":"info","time":"2025-03-12T16:00:15.593+0800","caller":"aigrammar/main.go:48","func":"main.main","msg":"DBManager init successfully. Mysql ","mysql_conn":"testdb:3306"}
{"level":"info","time":"2025-03-12T16:00:46.611+0800","caller":"aigrammar/main.go:48","func":"main.main","msg":"DBManager init successfully. Mysql ","mysql_conn":"testdb:3306"}

View File

@ -65,3 +65,7 @@
{"level":"info","method":"POST","msg":"request log","remote_ip":"192.168.65.1","status":200,"time":"2024-08-01T17:49:38+08:00","uri":"/grammar/words","user_agent":""}
{"level":"info","method":"POST","msg":"request log","remote_ip":"192.168.65.1","status":200,"time":"2024-08-01T18:56:25+08:00","uri":"/grammar/words","user_agent":""}
{"level":"info","method":"POST","msg":"request log","remote_ip":"192.168.65.1","status":200,"time":"2024-08-01T18:56:35+08:00","uri":"/grammar/feedback","user_agent":""}
{"level":"info","method":"POST","msg":"request log","remote_ip":"172.18.0.1","status":401,"time":"2025-01-18T19:56:29+08:00","uri":"/user/get","user_agent":""}
{"level":"info","method":"POST","msg":"request log","remote_ip":"172.18.0.1","status":401,"time":"2025-01-18T20:00:25+08:00","uri":"/user/get","user_agent":""}
{"level":"info","method":"POST","msg":"request log","remote_ip":"172.18.0.1","status":200,"time":"2025-01-18T20:02:30+08:00","uri":"/user/get","user_agent":""}
{"level":"info","method":"POST","msg":"request log","remote_ip":"172.18.0.1","status":200,"time":"2025-01-18T20:04:44+08:00","uri":"/grammar/translate","user_agent":""}