Skip to content

Commit

Permalink
Disable rison parsing error logs in production (elastic#171660)
Browse files Browse the repository at this point in the history
## Summary

Similar to elastic#170827

Disable noisy 3rd party lib warning in production mode.
  • Loading branch information
pgayvallet authored Nov 22, 2023
1 parent dc29fb7 commit 423e094
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/setup_node_env/mute_libraries.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,11 @@
// disable moment deprecation warnings
var moment = require('moment');
moment.suppressDeprecationWarnings = true;

// disable rison-node parsing errors
// eslint-disable-next-line @kbn/eslint/module_migration
var rison = require('rison-node');
rison.parser.prototype.error = function (message) {
this.message = message;
return undefined;
};

0 comments on commit 423e094

Please sign in to comment.