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 1
1
<!--
2
- Copyright (C) DATADVANCE, 2010-2021
2
+ Copyright (C) DATADVANCE, 2010-2022
3
3
4
4
Permission is hereby granted, free of charge, to any person obtaining a
5
5
copy of this software and associated documentation files (the
@@ -23,6 +23,10 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
23
24
24
# Changelog
25
25
26
+ ## [ 0.9.1] - 2022-01-27
27
+
28
+ - Minor fix in logging.
29
+
26
30
## [ 0.9.0] - 2021-10-19
27
31
28
32
- Ability to configure server notification queue limit per subscribtion.
Original file line number Diff line number Diff line change 1
1
<!--
2
- Copyright (C) DATADVANCE, 2010-2021
2
+ Copyright (C) DATADVANCE, 2010-2022
3
3
4
4
Permission is hereby granted, free of charge, to any person obtaining a
5
5
copy of this software and associated documentation files (the
@@ -512,10 +512,19 @@ _A reminder of how to setup an environment for the development._
512
512
513
513
1 . Install PyEnv to be able to work with many Python versions at once
514
514
[ 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 :
516
516
``` shell
517
517
$ pyenv local | xargs -L1 pyenv install
518
518
```
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.
519
528
3 . Install Poetry to the system Python.
520
529
``` shell
521
530
$ 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):
480
480
# Notify subclass a new client is connected.
481
481
await self .on_connect (payload )
482
482
except Exception as ex : # pylint: disable=broad-except
483
+ LOG .error (str (ex ))
483
484
await self ._send_gql_connection_error (ex )
484
485
# Close the connection.
485
486
# NOTE: We use the 4000 code because there are two reasons:
@@ -491,7 +492,6 @@ async def _on_gql_connection_init(self, payload):
491
492
# So mozilla offers us the following codes:
492
493
# 4000–4999 - Available for use by applications.
493
494
await self .close (code = 4000 )
494
- LOG .error (str (ex ))
495
495
else :
496
496
# Send CONNECTION_ACK message.
497
497
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"
34
34
# Docs: https://python-poetry.org/docs/
35
35
[tool .poetry ]
36
36
name = " django-channels-graphql-ws"
37
- version = " 0.9.0 "
37
+ version = " 0.9.1 "
38
38
description = """ Django Channels based WebSocket GraphQL server with \
39
39
Graphene-like subscriptions"""
40
40
authors = [" Alexander A. Prokhorov <alexander.prokhorov@datadvance.net>" ]
You can’t perform that action at this time.
0 commit comments