From 423e5097b6eab4c92564ae9b4738944c0425ea28 Mon Sep 17 00:00:00 2001 From: Lawrence Gripper Date: Mon, 24 Mar 2025 11:23:56 +0000 Subject: [PATCH] Tiny: Add note on how to get debug logs from server I was debugging an issue with my self-hosted instance and it took me a little bit to work out how to set the log level so I could see detailed logs. Added a note here to help others in future. --- src/content/docs/self-hosting/server-setup.mdx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/content/docs/self-hosting/server-setup.mdx b/src/content/docs/self-hosting/server-setup.mdx index 20278a2..0dd3c78 100644 --- a/src/content/docs/self-hosting/server-setup.mdx +++ b/src/content/docs/self-hosting/server-setup.mdx @@ -45,6 +45,12 @@ ATUIN_DB_URI="postgres://user:password@hostname/database" | `db_uri` | A valid PostgreSQL URI, for saving history (default: false) | | `path` | A path to prepend to all routes of the server (default: false) | +### Log Levels + +You can set `RUST_LOG` environment variable to configure the log level for the server. + +For example `RUST_LOG=debug atuin server start` is useful while debugging an issue. + ### TLS The server supports TLS through the `[tls]` section: