File tree Expand file tree Collapse file tree 1 file changed +22
-2
lines changed Expand file tree Collapse file tree 1 file changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -20,9 +20,13 @@ Implementation of the [GraphQL over WebSocket protocol] in Go.
20
20
cd " $GOPATH /github.com/functionalfoundry"
21
21
git clone https://github.com/functionalfoundry/graphqlws
22
22
```
23
- 3 . Run the example server :
23
+ 4 . Run the tests :
24
24
``` sh
25
25
cd graphqlws
26
+ go test
27
+ ```
28
+ 3 . Run the example server:
29
+ ``` sh
26
30
go run graphqlws/examples/server
27
31
```
28
32
@@ -111,7 +115,23 @@ for _, conn := range subscriptions {
111
115
}
112
116
```
113
117
114
- ## License
118
+ ### Logging
119
+
120
+ The library uses [logrus](https://github.com/sirupsen/logrus) for logging at the moment.
121
+ In the future we might remove those logs entirely to leave logging entirely to developers
122
+ using `graphqlws`. For the moment, you can control the logging level of `graphqlws`
123
+ by setting it through `logrus`:
124
+
125
+ ```go
126
+ import (
127
+ log " github.com /sirupsen/logrus"
128
+ )
129
+
130
+ ...
131
+
132
+ log.SetLevel(log.WarnLevel)
133
+ ```
134
+
115
135
116
136
Copyright (C) 2017 Functional Foundry, LLC.
117
137
You can’t perform that action at this time.
0 commit comments