Skip to content

Commit

Permalink
same
Browse files Browse the repository at this point in the history
  • Loading branch information
msimerson committed Feb 3, 2025
1 parent b59e667 commit fb3591d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default [
},

rules: {
'no-unused-vars': 0,
'no-unused-vars': 'warn',
},
},
]
13 changes: 6 additions & 7 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@ exports.log_transaction = function (next, connection) {
document: res,
})
.then((response) => {

Check warning on line 104 in index.js

View workflow job for this annotation

GitHub Actions / lint / lint

'response' is defined but never used

Check warning on line 104 in index.js

View workflow job for this annotation

GitHub Actions / lint / lint

'response' is defined but never used
// connection.loginfo(plugin, response);
// connection.loginfo(this, response);
})
.catch((error) => {
connection.logerror(plugin, error.message)
connection.logerror(this, error.message)
})

// hook reset_transaction doesn't seem to wait for next(). If I
Expand All @@ -127,7 +127,7 @@ exports.log_connection = function (next, connection) {
connection.notes.elasticsearch &&
connection.notes.elasticsearch === connection.tran_count
) {
connection.logdebug(plugin, 'skipping already logged txn')
connection.logdebug(this, 'skipping already logged txn')
return next()
}

Expand All @@ -136,18 +136,18 @@ exports.log_connection = function (next, connection) {

this.populate_conn_properties(connection, res)

// connection.lognotice(plugin, JSON.stringify(res));
// connection.lognotice(this, JSON.stringify(res));
this.es
.create({
index: this.getIndexName('connection'),
id: connection.uuid,
document: res,
})
.then((response) => {

Check warning on line 146 in index.js

View workflow job for this annotation

GitHub Actions / lint / lint

'response' is defined but never used

Check warning on line 146 in index.js

View workflow job for this annotation

GitHub Actions / lint / lint

'response' is defined but never used
// connection.loginfo(plugin, response);
// connection.loginfo(this, response);
})
.catch((error) => {
connection.logerror(plugin, error.message)
connection.logerror(this, error.message)
})

next()
Expand Down Expand Up @@ -300,7 +300,6 @@ exports.get_plugin_results = function (connection) {
}

exports.populate_message = function (pir, connection) {
const plugin = this
pir.message = {
bytes: connection.transaction.data_bytes,
envelope: {
Expand Down

0 comments on commit fb3591d

Please sign in to comment.