Skip to content

Friendly "endQuery" for logging#160

Open
serebro wants to merge 2 commits intoorientechnologies:masterfrom
serebro:patch-2
Open

Friendly "endQuery" for logging#160
serebro wants to merge 2 commits intoorientechnologies:masterfrom
serebro:patch-2

Conversation

@serebro
Copy link
Copy Markdown

@serebro serebro commented Mar 29, 2016

I would like to use "endQuery" event for logging, because it has query time. Example:

db.on('endQuery', function(obj) {
    console.log('Query:', obj.perf.query, obj.query);
});

serebro added 2 commits March 29, 2016 16:38
I would like to use "endQuery" event for logging, because it has query time. Example:
```
db.on('endQuery', function(obj) {
    console.log('Query:', obj.perf.ms, obj.perf.query);
});
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant