renamed _session to _sess for gelf

This commit is contained in:
Andris Reinman 2020-03-24 15:39:04 +02:00
parent da9a3100cb
commit fdea1d3a35
No known key found for this signature in database
GPG key ID: 5388A30A31834D83
5 changed files with 9 additions and 9 deletions

View file

@ -363,7 +363,7 @@ class IMAPConnection extends EventEmitter {
short_message: '[CONNRELEASE] Connection released for ' + this.user.id,
_connection: 'release',
_service: 'imap',
_session: this.session && this.session.id,
_sess: this.session && this.session.id,
_user: this.user.id,
_cid: this.id,
_ip: this.remoteAddress

View file

@ -50,7 +50,7 @@ module.exports = (server, userHandler, userCache) => (login, session, callback)
short_message: '[CONNSTART] Connection established for ' + result.user,
_connection: 'establish',
_service: 'imap',
_session: session && session.id,
_sess: session && session.id,
_user: result.user,
_cid: connection.id,
_ip: connection.remoteAddress,
@ -61,7 +61,7 @@ module.exports = (server, userHandler, userCache) => (login, session, callback)
short_message: '[CONNFAILED] Connection failed for ' + result.user,
_connection: 'limited',
_service: 'imap',
_session: session && session.id,
_sess: session && session.id,
_user: result.user,
_cid: connection.id,
_ip: connection.remoteAddress,

View file

@ -93,7 +93,7 @@ module.exports = (server, messageHandler) => (mailbox, update, session, callback
_copied_messages: copiedMessages,
_storage_used: r.value.storageUsed,
_mailbox: targetData._id,
_session: session && session.id
_sess: session && session.id
});
}
next();

View file

@ -331,7 +331,7 @@ class MessageHandler {
_user: mailboxData.user,
_inc: size,
_storage_used: r.value.storageUsed,
_session: options.session && options.session.id,
_sess: options.session && options.session.id,
_mailbox: mailboxData._id
});
}
@ -362,7 +362,7 @@ class MessageHandler {
_user: mailboxData.user,
_inc: -size,
_storage_used: r.value.storageUsed,
_session: options.session && options.session.id,
_sess: options.session && options.session.id,
_mailbox: mailboxData._id,
_rollback: 'yes',
_error: err.message,
@ -554,7 +554,7 @@ class MessageHandler {
_user: user,
_inc: inc.storageUsed,
_storage_used: r.value.storageUsed,
_session: options.session && options.session.id,
_sess: options.session && options.session.id,
_mailbox: inc.mailbox
});
}
@ -602,7 +602,7 @@ class MessageHandler {
_uid: messageData.uid,
_message_id: messageData._id,
_expires: messageData.rdate,
_session: options.session && options.session.id,
_sess: options.session && options.session.id,
_size: messageData.size
});
}

View file

@ -88,7 +88,7 @@ module.exports = (taskData, options, callback) => {
_set: Number(storageUsed) || 0,
_previous_storage_used: r.value.storageUsed,
_storage_used: Number(storageUsed) || 0,
_session: 'task.quota.' + taskData._id
_sess: 'task.quota.' + taskData._id
});
}