Conversation
📝 WalkthroughWalkthroughA new registry entry Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Pre-merge checks and finishing touches❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
🧰 Additional context used🧠 Learnings (1)📚 Learning: 2025-07-08T01:20:14.364ZApplied to files:
🪛 dotenv-linter (4.0.0).env[warning] 106-106: [UnorderedKey] The _APP_LOGGING_CONFIG_REALTIME key should go before the _APP_MAINTENANCE_INTERVAL key (UnorderedKey) ⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (20)
🔇 Additional comments (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Security Scan Results for PRDocker Image Scan Results
Source Code Scan Results🎉 No vulnerabilities found! |
There was a problem hiding this comment.
Actionable comments posted: 1
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
app/init/registers.php(2 hunks)app/realtime.php(1 hunks)
🧰 Additional context used
🧬 Code graph analysis (1)
app/init/registers.php (1)
src/Appwrite/Extend/Exception.php (1)
Exception(7-465)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
- GitHub Check: Setup & Build Appwrite Image
- GitHub Check: Setup & Build Appwrite Image
- GitHub Check: scan
🔇 Additional comments (1)
app/realtime.php (1)
238-275: Wiring realtime to its dedicated logger looks correctSwitching
$register->get('logger')to$register->get('realtimeLogger')inside$logErrorcleanly routes realtime errors through the new, separately configurable logger, while preserving the existing guard:
- If no logger is configured, the
if ($logger && ...)simply skips external logging and still logs toConsole, so behavior degrades gracefully.- The only caveat is that any exception thrown while resolving
realtimeLogger(e.g., from DSN parsing) will bubble out of$logError; this is addressed by ensuring therealtimeLoggerregistration handles bad/legacy configs without throwing (see comment inapp/init/registers.php).With that registration adjusted, this usage is sound.
✨ Benchmark results
⚡ Benchmark Comparison
|
What does this PR do?
(Provide a description of what this PR does and why it's needed.)
Test Plan
(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work. Screenshots may also be helpful.)
Related PRs and Issues
Checklist