mirror of
https://github.com/nodemailer/wildduck.git
synced 2024-11-10 17:47:07 +08:00
use _code instead of _error_code for gelf
This commit is contained in:
parent
d85bc3a8c7
commit
ecc9e7e5b7
4 changed files with 8 additions and 8 deletions
2
api.js
2
api.js
|
@ -67,7 +67,7 @@ const serverOptions = {
|
|||
_api_response: body.success ? 'success' : 'fail',
|
||||
|
||||
_error: body.error,
|
||||
_error_code: body.code,
|
||||
_code: body.code,
|
||||
|
||||
_size: size
|
||||
};
|
||||
|
|
|
@ -119,7 +119,7 @@ module.exports = {
|
|||
|
||||
if (err) {
|
||||
logdata._error = err.message;
|
||||
logdata._error_code = err.code;
|
||||
logdata._code = err.code;
|
||||
logdata._response = err.response;
|
||||
this._server.loggelf(logdata);
|
||||
return callback(err);
|
||||
|
|
|
@ -272,7 +272,7 @@ module.exports = {
|
|||
|
||||
if (err) {
|
||||
logdata._error = err.message;
|
||||
logdata._error_code = err.code;
|
||||
logdata._code = err.code;
|
||||
logdata._response = err.response;
|
||||
this._server.loggelf(logdata);
|
||||
return callback(err);
|
||||
|
|
|
@ -393,7 +393,7 @@ class UserHandler {
|
|||
short_message: '[AUTHFAIL] ' + username,
|
||||
full_message: err.stack,
|
||||
_error: err.message,
|
||||
_error_code: err.code,
|
||||
_code: err.code,
|
||||
_auth_result: 'error',
|
||||
_username: username,
|
||||
_domain: userDomain,
|
||||
|
@ -458,7 +458,7 @@ class UserHandler {
|
|||
short_message: '[AUTHFAIL] ' + username,
|
||||
full_message: err.stack,
|
||||
_error: err.message,
|
||||
_error_code: err.code,
|
||||
_code: err.code,
|
||||
_auth_result: 'error',
|
||||
_username: username,
|
||||
_domain: userDomain,
|
||||
|
@ -478,7 +478,7 @@ class UserHandler {
|
|||
short_message: '[AUTHFAIL] ' + username,
|
||||
full_message: err.stack,
|
||||
_error: err.message,
|
||||
_error_code: err.code,
|
||||
_code: err.code,
|
||||
_auth_result: 'error',
|
||||
_username: username,
|
||||
_domain: userDomain,
|
||||
|
@ -525,7 +525,7 @@ class UserHandler {
|
|||
short_message: '[AUTHFAIL] ' + username,
|
||||
full_message: err.stack,
|
||||
_error: err.message,
|
||||
_error_code: err.code,
|
||||
_code: err.code,
|
||||
_auth_result: 'error',
|
||||
_username: username,
|
||||
_domain: userDomain,
|
||||
|
@ -600,7 +600,7 @@ class UserHandler {
|
|||
short_message: '[AUTHFAIL] ' + username,
|
||||
full_message: err.stack,
|
||||
_error: err.message || 'Authentication failed',
|
||||
_error_code: err.code,
|
||||
_code: err.code,
|
||||
_auth_result: 'fail',
|
||||
_username: username,
|
||||
_domain: userDomain,
|
||||
|
|
Loading…
Reference in a new issue