From 9d92589ae940d4abfad3cd9256061ecd52094454 Mon Sep 17 00:00:00 2001 From: Gemma Tipper Date: Tue, 4 Feb 2025 14:59:13 +0000 Subject: [PATCH 1/2] Add instructions to CONTRIBUTING for changing the agent log level --- CONTRIBUTING.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 8d9d7fdb3f4..d2f9b46952f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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 From ea5eae9e1b710121af3bdb059d48b4ec19c94675 Mon Sep 17 00:00:00 2001 From: Gemma Tipper Date: Tue, 4 Feb 2025 15:00:41 +0000 Subject: [PATCH 2/2] Changelog --- changelog.d/+agent-log-level-instructions.internal.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/+agent-log-level-instructions.internal.md diff --git a/changelog.d/+agent-log-level-instructions.internal.md b/changelog.d/+agent-log-level-instructions.internal.md new file mode 100644 index 00000000000..9514b85abcd --- /dev/null +++ b/changelog.d/+agent-log-level-instructions.internal.md @@ -0,0 +1 @@ +Add instructions to CONTRIBUTING.md for changing the agent log level in mirrord config. \ No newline at end of file