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, "y": 680,
"wires": [ "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, "tostatus": false,
"complete": "true", "complete": "true",
"targetType": "full", "targetType": "full",
"x": 1520, "x": 1740,
"y": 600, "y": 520,
"wires": [] "wires": []
}, },
{ {
@@ -1627,8 +1627,8 @@
"tostatus": false, "tostatus": false,
"complete": "true", "complete": "true",
"targetType": "full", "targetType": "full",
"x": 1520, "x": 1760,
"y": 740, "y": 880,
"wires": [] "wires": []
}, },
{ {
@@ -1640,10 +1640,10 @@
"tosidebar": true, "tosidebar": true,
"console": true, "console": true,
"tostatus": false, "tostatus": false,
"complete": "payload", "complete": "true",
"targetType": "msg", "targetType": "full",
"x": 1560, "x": 1800,
"y": 900, "y": 1060,
"wires": [] "wires": []
}, },
{ {
@@ -1703,8 +1703,8 @@
"tostatus": false, "tostatus": false,
"complete": "payload", "complete": "payload",
"targetType": "msg", "targetType": "msg",
"x": 1950, "x": 2010,
"y": 500, "y": 560,
"wires": [] "wires": []
}, },
{ {
@@ -1718,8 +1718,8 @@
"tostatus": false, "tostatus": false,
"complete": "payload", "complete": "payload",
"targetType": "msg", "targetType": "msg",
"x": 1970, "x": 2010,
"y": 700, "y": 760,
"wires": [] "wires": []
}, },
{ {
@@ -1743,7 +1743,7 @@
"repair": false, "repair": false,
"outputs": 2, "outputs": 2,
"x": 1540, "x": 1540,
"y": 780, "y": 800,
"wires": [ "wires": [
[ [
"6e38bc3.4922b44" "6e38bc3.4922b44"
@@ -1765,7 +1765,7 @@
"complete": "payload", "complete": "payload",
"targetType": "msg", "targetType": "msg",
"x": 2030, "x": 2030,
"y": 800, "y": 820,
"wires": [] "wires": []
}, },
{ {
@@ -1793,7 +1793,7 @@
"outputs": 1, "outputs": 1,
"noerr": 0, "noerr": 0,
"x": 1740, "x": 1740,
"y": 740, "y": 760,
"wires": [ "wires": [
[ [
"a25291a9.35e33", "a25291a9.35e33",
@@ -1826,7 +1826,7 @@
"outputs": 1, "outputs": 1,
"noerr": 0, "noerr": 0,
"x": 1750, "x": 1750,
"y": 800, "y": 820,
"wires": [ "wires": [
[ [
"c3c9ab5b.c535c8" "c3c9ab5b.c535c8"
@@ -2022,5 +2022,53 @@
"x": 160, "x": 160,
"y": 140, "y": 140,
"wires": [] "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"
]
]
} }
] ]