Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
陈峰
2018-06-06 10:20:22 +0800
Commit
7002740cdc71ddc3253b8238e2967ccf4b044786
2 parents
e5072067
6d51a0aa
Merge branch 'feature/webapm' into 'release/0606'
Feature/webapm See merge request
!303
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
config/common.js
doraemon/middleware/error-handler.js
package.json
config/common.js
View file @
7002740
...
...
@@ -152,7 +152,7 @@ module.exports = {
apiCache
:
{
cache
:
true
},
zookeeperServer
:
'1
92.168.102.168:2188
'
,
zookeeperServer
:
'1
27.0.0.1:2181
'
,
redis
:
{
connect
:
{
host
:
'127.0.0.1'
,
...
...
doraemon/middleware/error-handler.js
View file @
7002740
...
...
@@ -79,7 +79,8 @@ exports.serverError = () => {
udid
,
code
:
err
.
code
||
500
,
path
:
`
[
$
{
req
.
method
}]
$
{
routeEncode
.
getRouter
(
req
)}
`
,
url
:
encodeURIComponent
(
req
.
originalUrl
)
url
:
encodeURIComponent
(
req
.
originalUrl
),
ip
:
_
.
get
(
req
,
'yoho.clientIp'
,
''
)
},
fields
:
{
message
:
err
.
message
,
...
...
package.json
View file @
7002740
...
...
@@ -58,7 +58,7 @@
"uuid"
:
"^2.0.2"
,
"yo-cli"
:
"=1.0.7"
,
"yoho-express-session"
:
"^2.0.0"
,
"yoho-node-lib"
:
"=0.6.1
4
"
,
"yoho-node-lib"
:
"=0.6.1
5
"
,
"yoho-zookeeper"
:
"^1.0.8"
},
"devDependencies"
:
{
...
...
Please
register
or
login
to post a comment