summaryrefslogtreecommitdiff
path: root/websocket/_logging.py
Commit message (Collapse)AuthorAgeFilesLines
* reconnect (#838)bubbleboy142022-08-241-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * rel example * tweaked rel example for linter * added rel note to examples.rst * slightly more compact example * added example header * matched wording * _socket.recv(): _recv() except socket.error - changed or to and; added except TimeoutError - raise WebSocketTimeoutException * _app - custom dispatcher check_callback() integration (and fixed pyevent compatibility): WrappedDispatcher (for use with generic event dispatchers such as pyevent and rel); create_dispatcher() accepts dispatcher kwarg (default None), and if it is specified, returns a WrappedDispatcher; use create_dispatcher() (passing specified dispatcher if any) every time (regardless of dispatcher specification) * Add clarifying comment, rerun CI tests * Add space to make linter happy * working reconnect * rmed logs * added _logging.warning() disconnected/reconnected notifications to handleDisconnect() * moved connect notification and dispatcher.read() (if doread kwarg [default False] is True) to setSock() (prevents those lines from running on ConnectionRefusedError) * run_forever(): reconnect kwarg now specifies sleep() time (defualt 5) * handleDisconnect(): fixed log msg * run_forever() refactor: stabilized stack frame count (at least in rel mode); added stack frame count to disconnect (warning) log; grossly oversimplified ;) * dispatcher simplification via DispatcherBase and DispatcherBase/WrappedDispatcher.timeout() * _logging: info(); enableTrace() supports level kwarg (default "DEBUG") * handleDisconnect() uses info() log * Fix linting errors Co-authored-by: engn33r <engn33r@users.noreply.github.com>
* Linting improvements, improved flake8 linting CI cmdengn33r2022-02-251-4/+1
|
* Update copyright year to 2022engn33r2021-12-311-1/+1
|
* Transition from LGPL 2.1 license to Apache 2.0 - fix #697engn33r2021-08-101-13/+11
|
* PEP8 style compliance fixesengn33r2021-05-041-1/+3
|
* Fix #526 by reverting invalid BSD license migration in commit e94ed9e to ↵engn33r2021-02-221-2/+1
| | | | return to LGPL2.1
* Add first draft of Sphinx documentationengn33r2021-01-311-2/+9
|
* avoid calling repr(data) if tracing is not enabledYehiyam Livneh2019-11-241-2/+4
|
* fixed #455 #443liris2018-08-141-4/+11
|
* Add NullHandler to logger to fix python 2 issue. Fix #342 Fix #341Tom Gurion2018-02-211-0/+1
|
* add warning() to _logging.__all__ to resolve _send_ping issueMatt2017-01-171-1/+1
|
* Logging warnings when send_ping routine fails, send_ping exc should not hit ↵Krzysztof Rosinski2016-07-011-0/+4
| | | | sys.excepthook
* wsdump, test_fuzzingclient, websocket.*, test_websocket: Organise importsAllan Lewis2016-04-271-1/+0
| | | | | | | | | | | | | | Previously, because of the multiple instances of `from foo import *`, names were imported from modules that had themselves imported them, instead of from the place of definition. This commit therefore does the following: - Declares `__all__` in every module that imports anything, so that `from foo import *` is sane. - Sorts the imports based on conventions, similar to the output of `isort`. - Places all conditional imports after unconditional imports, except where that isn't valid. - Imports local names from the modules where they are defined, except when importing the package itself.
* ChangeLog, _abnf, _logging: Corect typosAllan Lewis2016-04-271-5/+5
|
* Use 'websocket' as logger nameJohannes Laire2016-02-191-1/+1
|
* fixed #173liris2015-04-171-5/+5
|
* add "__all__"Hiroki Ohtani2015-03-191-0/+3
|
* add method.Hiroki Ohtani2015-03-161-0/+4
|
* refactoring.Hiroki Ohtani2015-03-161-11/+11
|
* refactoring. move logging code to _logging.pyHiroki Ohtani2015-03-161-0/+64