Skip to content

Commit cbc288d

Browse files
committed
Added docs for information level setting
1 parent 01381aa commit cbc288d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The application requires a configuration file `./config.json` to be able to run.
1818

1919
| Setting | Description |
2020
|---|---|
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. |
2222
| port | The port the server application will listen to. Defaults to 80. |
2323
| 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. |
2424
| 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:
3838
}
3939
```
4040

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`.
48+
4149
## Run the application
4250
Open a CLI and run the command: `npm start`
4351

0 commit comments

Comments
 (0)