Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
xianyu-ufo-app-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
TaoHuang
2019-10-21 10:33:12 +0800
Commit
cac98523a6d8b6e96826c9bc6c7531488e623694
1 parent
84be29cc
add report env by huangtao
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
apps/common/report-error-server.js
apps/common/report-error-server.js
View file @
cac9852
...
...
@@ -7,6 +7,10 @@ export default (context, type = 'server') => {
return
(
err
,
vm
,
info
)
=>
{
logger
.
error
(
err
,
vm
,
info
);
if
(
process
.
env
.
NO_APM_REPORT
)
{
return
;
}
if
(
process
.
env
.
NODE_ENV
===
'production'
)
{
setImmediate
(()
=>
{
const
reportData
=
{
...
...
Please
register
or
login
to post a comment