File tree Expand file tree Collapse file tree 4 files changed +18
-5
lines changed Expand file tree Collapse file tree 4 files changed +18
-5
lines changed Original file line number Diff line number Diff line change 11<!--
2- Copyright (C) DATADVANCE, 2010-2021
2+ Copyright (C) DATADVANCE, 2010-2022
33
44Permission is hereby granted, free of charge, to any person obtaining a
55copy of this software and associated documentation files (the
@@ -23,6 +23,10 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2323
2424# Changelog
2525
26+ ## [ 0.9.1] - 2022-01-27
27+
28+ - Minor fix in logging.
29+
2630## [ 0.9.0] - 2021-10-19
2731
2832- Ability to configure server notification queue limit per subscribtion.
Original file line number Diff line number Diff line change 11<!--
2- Copyright (C) DATADVANCE, 2010-2021
2+ Copyright (C) DATADVANCE, 2010-2022
33
44Permission is hereby granted, free of charge, to any person obtaining a
55copy of this software and associated documentation files (the
@@ -512,10 +512,19 @@ _A reminder of how to setup an environment for the development._
512512
5135131 . Install PyEnv to be able to work with many Python versions at once
514514 [ PyEnv→Installation] ( https://github.com/pyenv/pyenv#installation ) .
515- 2 . Install Python versions needed:
515+ 2 . Install Python versions needed. The command should be executed in the project's directory :
516516 ``` shell
517517 $ pyenv local | xargs -L1 pyenv install
518518 ```
519+ 3 . Check that pyenv works correctly. The command:
520+ ``` shell
521+ $ pyenv versions
522+ ```
523+ should show python versions enlisted in [ .python-version] ( .python-version ) .
524+ If everything is set up correctly pyenv will switch version of python when
525+ you enter and leave the project's directory. Inside the directory `pyenv which
526+ python` should show you a python installed in pyenv, outside the dir it
527+ should be the system python.
5195283 . Install Poetry to the system Python.
520529 ``` shell
521530 $ curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -
Original file line number Diff line number Diff line change @@ -480,6 +480,7 @@ async def _on_gql_connection_init(self, payload):
480480 # Notify subclass a new client is connected.
481481 await self .on_connect (payload )
482482 except Exception as ex : # pylint: disable=broad-except
483+ LOG .error (str (ex ))
483484 await self ._send_gql_connection_error (ex )
484485 # Close the connection.
485486 # NOTE: We use the 4000 code because there are two reasons:
@@ -491,7 +492,6 @@ async def _on_gql_connection_init(self, payload):
491492 # So mozilla offers us the following codes:
492493 # 4000–4999 - Available for use by applications.
493494 await self .close (code = 4000 )
494- LOG .error (str (ex ))
495495 else :
496496 # Send CONNECTION_ACK message.
497497 await self ._send_gql_connection_ack ()
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ build-backend = "poetry.masonry.api"
3434# Docs: https://python-poetry.org/docs/
3535[tool .poetry ]
3636name = " django-channels-graphql-ws"
37- version = " 0.9.0 "
37+ version = " 0.9.1 "
3838description = """ Django Channels based WebSocket GraphQL server with \
3939 Graphene-like subscriptions"""
4040authors = [" Alexander A. Prokhorov <alexander.prokhorov@datadvance.net>" ]
You can’t perform that action at this time.
0 commit comments