Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
search_server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
16eb5191
authored
Oct 28, 2020
by
huangchengyi
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
1.0
parent
d4e62561
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
cmd/http/http
pkg/common/log_report.go
cmd/http/http
View file @
16eb5191
The file could not be displayed because it is too large.
pkg/common/log_report.go
View file @
16eb5191
...
...
@@ -2,6 +2,7 @@ package common
import
(
"encoding/json"
"fmt"
"github.com/gin-gonic/gin"
"github.com/gomodule/redigo/redis"
"github.com/ichunt2019/logger"
...
...
@@ -55,6 +56,7 @@ func AnalyzeSearchError(ctx *gin.Context,code int, ip, errMsg, file, line, metho
go
func
()
{
//推送到钉钉
result
,
err
:=
message
.
DingDingPush
(
errMsg
)
fmt
.
Print
(
result
,
err
)
if
err
!=
nil
||
result
.
Errcode
!=
0
{
logger
.
Error
(
"%s"
,
err
.
Error
())
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment