Skip to content

Commit f868611

Browse files
committed
Merge branch 'v0.9.1-branch' into 'master'
V0.9.1 branch See merge request sd/pseven/DjangoChannelsGraphqlWs!15
2 parents 5fa540d + f1debba commit f868611

File tree

4 files changed

+18
-5
lines changed

4 files changed

+18
-5
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
Copyright (C) DATADVANCE, 2010-2021
2+
Copyright (C) DATADVANCE, 2010-2022
33
44
Permission is hereby granted, free of charge, to any person obtaining a
55
copy 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.

README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
Copyright (C) DATADVANCE, 2010-2021
2+
Copyright (C) DATADVANCE, 2010-2022
33
44
Permission is hereby granted, free of charge, to any person obtaining a
55
copy of this software and associated documentation files (the
@@ -512,10 +512,19 @@ _A reminder of how to setup an environment for the development._
512512

513513
1. 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.
519528
3. Install Poetry to the system Python.
520529
```shell
521530
$ curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -

channels_graphql_ws/graphql_ws_consumer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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()

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ build-backend = "poetry.masonry.api"
3434
# Docs: https://python-poetry.org/docs/
3535
[tool.poetry]
3636
name = "django-channels-graphql-ws"
37-
version = "0.9.0"
37+
version = "0.9.1"
3838
description = """Django Channels based WebSocket GraphQL server with \
3939
Graphene-like subscriptions"""
4040
authors = ["Alexander A. Prokhorov <alexander.prokhorov@datadvance.net>"]

0 commit comments

Comments
 (0)