Forward client browser messages to server console in --debug mode#15
Open
Forward client browser messages to server console in --debug mode#15
Conversation
5f09fac to
486cd8b
Compare
deae166 to
7ecfd66
Compare
upload config file during tests (it was not failing before we implemenetd create_app; because app was global and re-used from one test to another, and therefore config file was already loaded)
fix test , change relative import to absolute, trying to fix tests update tests Revert "trying to fix tests" This reverts commit 8edd3b3. Update test_e2e.py Update test_e2e.py
8c622ca to
f209abb
Compare
f209abb to
dc90e19
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add Console Forwarding for Debug Mode
Overview
Adds browser console message forwarding to Boulder when running with
--debug. Browser console messages (logs, warnings, errors) are automatically captured and forwarded to the server console with timestamps and color coding.Problem
Browser console messages are only visible in browser dev tools, making remote debugging difficult and preventing correlation with server-side logs.
Solution
Conditional console forwarding system that activates only with
--debugflag, captures all console methods, forwards via HTTP POST, and formats output with timestamps and colors.Changes
boulder/app.py: Added debug mode tracking and conditional callback registrationboulder/callbacks/console_callbacks.py: NEW - Flask route/console_forwardfor message handlingboulder/layout.py: Conditional script inclusion when debug mode enabledboulder/callbacks/__init__.py: Updated callback registrationUsage
boulder --debug # Enable console forwardingFeatures