mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Nodes log via parent flow to allow flow-info to be added
This commit is contained in:
committed by
Nick O'Leary
parent
9a660f3fe9
commit
0c9fd25d3e
@@ -486,16 +486,14 @@ function log_helper(self, level, msg) {
|
||||
if (self._alias) {
|
||||
o._alias = self._alias;
|
||||
}
|
||||
if (self._flow) {
|
||||
o.path = self._flow.path;
|
||||
}
|
||||
|
||||
if (self.z) {
|
||||
o.z = self.z;
|
||||
}
|
||||
if (self.name) {
|
||||
o.name = self.name;
|
||||
}
|
||||
Log.log(o);
|
||||
self._flow.log(o);
|
||||
}
|
||||
/**
|
||||
* Log an INFO level message
|
||||
|
Reference in New Issue
Block a user