-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add a separate logger for websockets and quiet down the noise. Also fix typo on server_logger. * Access log format changed to say chunked for size if not known. * Log unexpected disconnections to access log. Websocket timeout warning to sanic.websockets. * Websocket access logging added. * Avoid WS CLOSE logging if WS handshake was not completed yet; happens on server shutdownm with incoming connections; * Fix mixup * Keep peer stored for socket closing messages. * Remove log message timestamps to avoid duplicate time in system logs. Access log doesn't need level printed either. * Handler execution time on access log, colored and formatted log output. * Giving necessary context for error format messages * Strip control codes when not on terminal. * Add unique IDs for unix socket connections instead of UNKNOWN. * Add WS 1011 status * Fine tuning the ID * Experimenting with process names. Proof of concept, needs additional work ir not reversal. * More practical WS close statuses. * Avoid printing on logs any untrusted WS close reason as is. * Fix access logging to return 0 bytes for responses without body. * Typing fix * Simplify WebSocket status formatting. * Separate name and ident * Update logging to include debug and prod styles * Add logging module * Ruff formatting * Fix some tests * make pretty * Rename formatters * Fix ruff complaint * Add some documentation * Add some more documentation and docstrings * Fix type * Add colors to traceback * Add NO_COLOR config * Add some coloring tests * Account for new style error lines * Explicit color tests * Skip some coverage --------- Co-authored-by: L. Karkkainen <[email protected]> Co-authored-by: L. Kärkkäinen <[email protected]>
- Loading branch information
1 parent
b6a8f8e
commit bc1a3eb
Showing
53 changed files
with
1,013 additions
and
417 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
$ pytest examples/pytest_xdist.py -n 8 # 8 workers | ||
""" | ||
|
||
import re | ||
|
||
import pytest | ||
|
This file contains 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
This file contains 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
- Sanic | ||
- html5tagger | ||
- HTMX""" | ||
|
||
from pathlib import Path | ||
|
||
from webapp.worker.factory import create_app | ||
|
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "23.12.0" | ||
__version__ = "24.3.0.dev" |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.