add report env by huangtao
Showing
1 changed file
with
4 additions
and
0 deletions
@@ -7,6 +7,10 @@ export default (context, type = 'server') => { | @@ -7,6 +7,10 @@ export default (context, type = 'server') => { | ||
7 | return (err, vm, info) => { | 7 | return (err, vm, info) => { |
8 | logger.error(err, vm, info); | 8 | logger.error(err, vm, info); |
9 | 9 | ||
10 | + if (process.env.NO_APM_REPORT) { | ||
11 | + return; | ||
12 | + } | ||
13 | + | ||
10 | if (process.env.NODE_ENV === 'production') { | 14 | if (process.env.NODE_ENV === 'production') { |
11 | setImmediate(() => { | 15 | setImmediate(() => { |
12 | const reportData = { | 16 | const reportData = { |
-
Please register or login to post a comment