Application level slow log for mysql connections. Good for debugging slow queries when you haven't turned on or have access to the database slow log.
$ npm i mysql-slowlog --save
var conn =;// This patches the conn.query method to record time diffs.var log = conntime: 5000 // Five seconds is pretty slow.;log;
- Added error stack from where the query was called. This can be used to locate where in your code the query was called.
- Fix bug when there is no stream returned by query.