Skip to content

Commit

Permalink
Add instructions to CONTRIBUTING for changing the agent log level (#3062
Browse files Browse the repository at this point in the history
)

* Add instructions to CONTRIBUTING for changing the agent log level

* Changelog
  • Loading branch information
gememma authored Feb 4, 2025
1 parent fe3bcc9 commit dcb8bb9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,14 @@ To debug it with a debugger:
## Retrieving Agent Logs
You can change the minimum severity of logs emitted by the agent by setting `agent.log_level` in the mirrord config
file, for example:
```json
"agent": {
"log_level": "mirrord=trace"
}
```
By default, the agent's pod will complete and disappear shortly after the agent exits. In order to be able to retrieve
the agent's logs after it crashes, set the agent's pod's TTL to a comfortable number of seconds. This configuration can
be specified either as a command line argument (`--agent-ttl`), environment variable (`MIRRORD_AGENT_TTL`), or in a
Expand Down
1 change: 1 addition & 0 deletions changelog.d/+agent-log-level-instructions.internal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add instructions to CONTRIBUTING.md for changing the agent log level in mirrord config.

0 comments on commit dcb8bb9

Please sign in to comment.