We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06fa5b4 commit 107e9a0Copy full SHA for 107e9a0
bin/proxy/master.js
@@ -37,7 +37,12 @@ process.on('warning', function(warning) {
37
const errStr = warning && warning.stack || String(warning);
38
const content = `<p><strong>错误堆栈</strong></p><p><pre><code>${errStr}</code></pre></p>`;
39
40
- logger.error(errStr);
+ if (warning.message && warning.message.indexOf('N-API') > -1) {
41
+ logger.warn(warning.message);
42
+ return;
43
+ }
44
+
45
+ logger.warn(errStr);
46
47
setImmediate(function() {
48
require('util/mail/mail.js').SendMail(key, 'js', 600, {
0 commit comments