feat: notify self-hosted users that execution/site logs are unavailable#3071
feat: notify self-hosted users that execution/site logs are unavailable#3071ChiragAgg5k wants to merge 1 commit into
Conversation
…able Self-hosted open-source Appwrite no longer stores function/site log and error output. Add an info alert in the shared logs/errors tabs explaining why the section may be empty, shown only on self-hosted builds. - Add SelfHostedLogsAlert component (product-aware: site/function) - Render it in logsResponse Logs/Errors tabs when isSelfHosted and no output
Greptile SummaryAdds a self-hosted informational alert to the shared
Confidence Score: 5/5Safe to merge — the change is additive, isolated to the shared log response component, and has no effect on cloud users. Both changed files are narrow and well-scoped. The new component correctly uses Svelte 5 runes syntax consistent with the rest of the already-migrated logsResponse.svelte, the isSelfHosted guard is the established pattern for feature-gating in this codebase, and the branch ordering (self-hosted alert before logging-disabled alert) correctly avoids showing a misleading 'enable logging in settings' message on self-hosted builds where logging cannot persist output regardless. No files require special attention. Important Files Changed
Reviews (1): Last reviewed commit: "(feat): notify self-hosted users that ex..." | Re-trigger Greptile |
What
Self-hosted open-source Appwrite no longer stores function/site execution log and error output. This adds an informational notice in the console so users understand why the Logs and Errors sections may appear empty, instead of just seeing "No logs found."
How
src/lib/components/logs/selfHostedLogsAlert.svelte— aproduct-aware (site|function)Alert.Inline status="info", mirroring the existingloggingAlert.sveltepattern.src/lib/components/logs/logsResponse.svelte— the shared component that renders the Logs/Errors tabs for both functions and sites. ImportsisSelfHostedfrom$lib/systemand renders the new alert in the Logs and Errors branches when on self-hosted and no output is present (taking precedence over the oldLoggingAlert/ "No logs found." fallbacks).Because the Logs/Errors rendering is shared, this single change covers both function executions (
functions/.../executions/sheet.svelte) and site logs (sites/.../logs/sheet.svelte).Behavior
isCloudusers are unaffected).Copy
Function:
Site:
Testing
bun run format— cleanbun run lint(eslint on touched files) — cleanbun run check— no new errors from touched files (pre-existing@appwrite.io/consolemodule-resolution errors are environment-only, SDK not installed locally)