Skip to content

Commit a33eb58

Browse files
update Wrangler env-vars to include WRANGLER_LOG_SANITIZE and WRANGLER_SEND_ERROR_REPORTS
1 parent 9357d6a commit a33eb58

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/content/docs/workers/wrangler/system-environment-variables.mdx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,14 @@ Wrangler supports the following environment variables:
5151

5252
- The email address associated with your Cloudflare account, usually used for older authentication method with `CLOUDFLARE_API_KEY=`.
5353

54-
- `WRANGLER_SEND_METRICS` <Type text="string" /> <MetaInfo text="optional" />
54+
- `WRANGLER_SEND_METRICS` <Type text="boolean" /> <MetaInfo text="optional" />
5555

5656
- Options for this are `true` and `false`. Defaults to `true`. Controls whether Wrangler can send anonymous usage data to Cloudflare for this project. You can learn more about this in our [data policy](https://github.com/cloudflare/workers-sdk/tree/main/packages/wrangler/telemetry.md).
5757

58+
- `WRANGLER_SEND_ERROR_REPORTS` <Type text="boolean" /> <MetaInfo text="optional" />
59+
60+
- Options for this are `true` and `false`. Defaults to `undefined`. Controls whether Wrangler can send non-user error reports to Cloudflare for this project. If `undefined`, Wrangler will ask the user whether to send an error report each time there is a non-user error.
61+
5862
- `CLOUDFLARE_HYPERDRIVE_LOCAL_CONNECTION_STRING_<BINDING_NAME>`<Type text="string" /> <MetaInfo text="optional" />
5963

6064
- The [local connection string](/hyperdrive/configuration/local-development/) for your database to use in local development with [Hyperdrive](/hyperdrive/). For example, if the binding for your Hyperdrive is named `PROD_DB`, this would be `CLOUDFLARE_HYPERDRIVE_LOCAL_CONNECTION_STRING_PROD_DB="postgres://user:[email protected]:5432/testdb"`. Each Hyperdrive is uniquely distinguished by the binding name.
@@ -71,6 +75,10 @@ Wrangler supports the following environment variables:
7175

7276
- A file or directory path where Wrangler will write debug logs. If the path ends in `.log`, Wrangler will consider this the path to a file where all logs will be written. Otherwise, Wrangler will treat the path as a directory where it will write one or more log files using a timestamp for the filenames.
7377

78+
- `WRANGLER_LOG_SANITIZE` <Type text="boolean" /> <MetaInfo text="optional" />
79+
80+
- Options for this are `true` and `false`. Defaults to `true`. Controls whether Wrangler will sanitize any sensitive information from logs written to the console or to a log file. Sensitive information includes API tokens, email addresses, account IDs, and more.
81+
7482
- `FORCE_COLOR` <Type text="string" /> <MetaInfo text="optional" />
7583
- By setting this to `0`, you can disable Wrangler's colorised output, which makes it easier to read with some terminal setups. For example, `FORCE_COLOR=0`.
7684

@@ -86,6 +94,7 @@ Wrangler supports the following environment variables:
8694

8795
* `WRANGLER_R2_SQL_AUTH_TOKEN` <Type text="string" /> <MetaInfo text="optional" />
8896
- API token used for executing queries with [R2 SQL](/r2-sql).
97+
8998
## Example `.env` file
9099

91100
The following is an example `.env` file:

0 commit comments

Comments
 (0)