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: README.md
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ The application requires a configuration file `./config.json` to be able to run.
18
18
19
19
| Setting | Description |
20
20
|---|---|
21
-
| informationLevel | The level of severity of the information outputted to the log. The severity can be 0 (everything), 1 (warnings and errors), 2 (only errors). Defaults to 2. |
21
+
| informationLevel | The level of severity of the information outputted to the log. The severity can be 0 (everything), 1 (warnings and errors), 2 (only errors). Defaults to 2. You can override this per runtime by setting the `INFORMATION_LEVEL` environment variable. |
22
22
| port | The port the server application will listen to. Defaults to 80. |
23
23
| secureToken | The secret token used to validate the GitHub webhook post to /update. See [GitHub Developer - Securing your webhooks](https://developer.github.com/webhooks/securing/) for more information. |
24
24
| token | Personal access token used to gain access to GitHub API. The token scope is requires only access to public repositories. See [GitHub Help - Creating a personal access token for the command line](https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line) for more information. |
@@ -38,6 +38,14 @@ Example config file:
38
38
}
39
39
```
40
40
41
+
To override logging without editing `config.json`, set an environment variable before starting the server, for example:
42
+
43
+
```bash
44
+
INFORMATION_LEVEL=0 npm start
45
+
```
46
+
47
+
Environment variables take precedence over values in `config.json`.
0 commit comments