mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Add .trace and .debug to Node prototype
This commit is contained in:
parent
b2390f1caf
commit
73dfe631ce
@ -246,6 +246,14 @@ Node.prototype.error = function(logMessage,msg) {
|
||||
}
|
||||
};
|
||||
|
||||
Node.prototype.debug = function(msg) {
|
||||
log_helper(this, Log.DEBUG, msg);
|
||||
}
|
||||
|
||||
Node.prototype.trace = function(msg) {
|
||||
log_helper(this, Log.TRACE, msg);
|
||||
}
|
||||
|
||||
/**
|
||||
* If called with no args, returns whether metric collection is enabled
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user