99designs / 99designs/gqlgen

Is it possible to disable/redirect gqlgen's log output (e.g. while running unit tests)?

未关闭
#2,853 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Go
星标
10.8k
派生
1.3k
平均合并
2 天 36 分钟
30 天内合并 PR
26

描述

### What happened?

I'm using gqlgen in a project and, while running my own unit tests, I'm seeing a log message in the console triggered by an expected error. The log message is being generated by this line:
https://github.com/99designs/gqlgen/blob/v0.17.41/graphql/handler/transport/websocket.go#L97

Is it possible to disable or otherwise redirect gqlgen's log output so that I can hide the message while running my unit tests?

### versions
- `go run github.com/99designs/gqlgen version`? v0.17.41
- `go version`? go version go1.21.4 darwin/amd64

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。