You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/env.md
+17-4Lines changed: 17 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,11 +64,15 @@ If not set, then default (`console.info` and above) logging is enabled.
64
64
If set to an empty string, or running in `ag-chain-cosmos start` mode, don't
65
65
print any logs. This is part of "consensus mode."
66
66
67
-
If set to a value that contains the substring `agoric`, then print all console
68
-
messages for the entire SDK.
67
+
Otherwise, set to a comma-separated list of strings.
69
68
70
-
Otherwise, set to a comma-separated list of prefixes, where each prefix is the
71
-
context given to `makeConsole`. For example:
69
+
If one of those strings is
70
+
-`agoric`, then print all console messages for the entire `agoric-sdk``.
71
+
-`track-turns`, then log errors at the top of the event-loop that may otherwise be unreported. See also the TRACK_TURNS environment variable below.
72
+
-`label-instances`, then log exo instances with a unique label per instance. HAZARD This causes an information leak in the messages of thrown errors, which are available even to code without access to the console. Use with care.
73
+
74
+
For each of those strings begins with a prefix recognized as indicating what
75
+
console messages to enable, pass it to `makeConsole`. For example:
72
76
73
77
-`DEBUG=SwingSet:ls` enable all console messages for liveslots, regardless of vat.
74
78
-`DEBUG=SwingSet:ls:v13` enable for liveslots in vat 13.
@@ -97,6 +101,10 @@ Description: When nonempty, create pretend prepopulated tokens like "moola" and
97
101
98
102
Lifetime: until chain is mature enough not to need any pretend tokens
99
103
104
+
## LOCKDOWN_*
105
+
106
+
For the envoronment variables beginning with `LOCKDOWN_` , see [`lockdown` Options](https://github.com/endojs/endo/blob/master/packages/ses/docs/lockdown.md).
107
+
100
108
## OTEL_EXPORTER_PROMETHEUS_PORT
101
109
102
110
Affects: cosmic-swingset
@@ -238,3 +246,8 @@ records individually. `config.defaultManagerType` has a higher priority so that
238
246
tests which require a specific worker (e.g. which exercise XS heap snapshots,
239
247
or metering) can override the env var, so they won't break under `yarn
240
248
test:xs`.
249
+
250
+
## TRACK_TURNS
251
+
252
+
Log the deep causality stack behind logged errors if possible. See also the
0 commit comments