Merge pull request #2685 from node-red-hitachi/dev-tracemetric

Add 'done' metric log for message tracing
This commit is contained in:
Nick O'Leary 2020-09-03 11:16:26 +01:00 committed by GitHub
commit b309161f00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -124,6 +124,7 @@ Node.prototype.context = function() {
* @param {error} error (optional) an error hit whilst handling the message
*/
Node.prototype._complete = function(msg,error) {
this.metric("done",msg);
if (error) {
// For now, delegate this to this.error
// But at some point, the timeout handling will need to know about