Added logging of flowContext - always good to have lot of information in the logs...

This commit is contained in:
Joe Tretter
2020-01-09 20:39:19 -06:00
parent 3856f3d109
commit 69d1263079

View File

@@ -1589,15 +1589,15 @@
"y": 680,
"wires": [
[
"3e2250ef.405d5",
"b29e9a85.c0f208"
"b29e9a85.c0f208",
"8cbd61c3.9ab1"
],
[
"800f6d47.f091b",
"cc5f7279.5f84b"
"cc5f7279.5f84b",
"453909e5.5bb148"
],
[
"7028479c.9a21b8"
"fec3d33d.0d4ea"
]
]
},
@@ -1612,8 +1612,8 @@
"tostatus": false,
"complete": "true",
"targetType": "full",
"x": 1520,
"y": 600,
"x": 1740,
"y": 520,
"wires": []
},
{
@@ -1627,8 +1627,8 @@
"tostatus": false,
"complete": "true",
"targetType": "full",
"x": 1520,
"y": 740,
"x": 1760,
"y": 880,
"wires": []
},
{
@@ -1640,10 +1640,10 @@
"tosidebar": true,
"console": true,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"x": 1560,
"y": 900,
"complete": "true",
"targetType": "full",
"x": 1800,
"y": 1060,
"wires": []
},
{
@@ -1703,8 +1703,8 @@
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"x": 1950,
"y": 500,
"x": 2010,
"y": 560,
"wires": []
},
{
@@ -1718,8 +1718,8 @@
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"x": 1970,
"y": 700,
"x": 2010,
"y": 760,
"wires": []
},
{
@@ -1743,7 +1743,7 @@
"repair": false,
"outputs": 2,
"x": 1540,
"y": 780,
"y": 800,
"wires": [
[
"6e38bc3.4922b44"
@@ -1765,7 +1765,7 @@
"complete": "payload",
"targetType": "msg",
"x": 2030,
"y": 800,
"y": 820,
"wires": []
},
{
@@ -1793,7 +1793,7 @@
"outputs": 1,
"noerr": 0,
"x": 1740,
"y": 740,
"y": 760,
"wires": [
[
"a25291a9.35e33",
@@ -1826,7 +1826,7 @@
"outputs": 1,
"noerr": 0,
"x": 1750,
"y": 800,
"y": 820,
"wires": [
[
"c3c9ab5b.c535c8"
@@ -2022,5 +2022,53 @@
"x": 160,
"y": 140,
"wires": []
},
{
"id": "8cbd61c3.9ab1",
"type": "function",
"z": "75185287.024c5c",
"name": "FlowContext2msg",
"func": "msg.flowContext = {};\nflow.keys().forEach(ele=>{\n msg.flowContext[ele]=flow.get(ele);\n});\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 1550,
"y": 520,
"wires": [
[
"3e2250ef.405d5"
]
]
},
{
"id": "453909e5.5bb148",
"type": "function",
"z": "75185287.024c5c",
"name": "FlowContext2msg",
"func": "msg.flowContext = {};\nflow.keys().forEach(ele=>{\n msg.flowContext[ele]=flow.get(ele);\n});\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 1550,
"y": 880,
"wires": [
[
"800f6d47.f091b"
]
]
},
{
"id": "fec3d33d.0d4ea",
"type": "function",
"z": "75185287.024c5c",
"name": "FlowContext2msg",
"func": "msg.flowContext = {};\nflow.keys().forEach(ele=>{\n msg.flowContext[ele]=flow.get(ele);\n});\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 1550,
"y": 1060,
"wires": [
[
"7028479c.9a21b8"
]
]
}
]