8000 handle Keep-Alive timeout log as `DEBUG`, not `WARNING` by kanarus · Pull Request #463 · ohkami-rs/ohkami · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

handle Keep-Alive timeout log as DEBUG, not WARNING #463

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 31, 2025

Conversation

kanarus
Copy link
Member
@kanarus kanarus commented May 31, 2025

Session timeout very often happens in some clients such as browsers, and logs of them do not help anything in most cases.

Current Ohkami outputs these logs as WARNS log, so for browser, prints warning for almost every sessions! This will be only annoying in most situation.

This PR changes session timeout logs to be DEBUG ones, output only when DEBUG feature is activated.

github-actions[bot]
github-actions bot previously approved these changes May 31, 2025
@kanarus kanarus added the dx Improve developer experience label May 31, 2025
@kanarus kanarus changed the title handle session timeout log as DEBUG, not WARNING handle Keep-Alive timeout log as DEBUG, not WARNING May 31, 2025
@kanarus
Copy link
Member Author
kanarus commented May 31, 2025

WebSocket timeout should be logged as WANRING because this is the timeout of whole a WebSocket session and not reached when the session correctly finishes within the timeout.

( while Keep-Alive timeout should be DEBUG because it's per-read timeout and easily reached in any cases with no problem. )

@kanarus kanarus merged commit 46c35a9 into v0.24 May 31, 2025
9 checks passed
@kanarus kanarus deleted the session-timeout-log-as-DEBUG branch May 31, 2025 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dx Improve developer experience
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0