Skip to content

Commit f096e1e

Browse files
chore: suppress receipt of graphql request to logging level 2 (#9612)
**Description** This PR assigns the logging of GraphQL requests to log level 2. **Checklist** - [x] The PR title follows the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/#summary) syntax, leading with `fix:`, `feat:`, `chore:`, `ci:`, etc.
1 parent 793fe9c commit f096e1e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

graphql/admin/http.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ func (gs *graphqlSubscription) Subscribe(
183183

184184
audit.AuditWebSockets(ctx, req)
185185
namespace := x.ExtractNamespaceHTTP(&http.Request{Header: reqHeader})
186-
glog.Infof("namespace: %d. Got GraphQL request over websocket.", namespace)
186+
glog.V(2).Infof("namespace: %d. Got GraphQL request over HTTP.", namespace)
187187
// first load the schema, then do anything else
188188
if err := LazyLoadSchema(namespace); err != nil {
189189
return nil, err
@@ -225,7 +225,7 @@ func (gh *graphqlHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
225225
defer span.End()
226226

227227
ns, _ := strconv.ParseUint(r.Header.Get("resolver"), 10, 64)
228-
glog.Infof("namespace: %d. Got GraphQL request over HTTP.", ns)
228+
glog.V(2).Infof("namespace: %d. Got GraphQL request over HTTP.", ns)
229229
if err := gh.isValid(ns); err != nil {
230230
glog.Errorf("namespace: %d. graphqlHandler not initialised: %s", ns, err)
231231
WriteErrorResponse(w, r, errors.New(resolve.ErrInternal))

0 commit comments

Comments
 (0)