This repository has been archived by the owner on Sep 30, 2024. It is now read-only.
logging(gitstart) tracking issue: migrate graphqlbackend to use sourcegraph/log #36382
Closed
3 of 4 tasks
Problem statement
The
graphqlbackend
layer in Sourcegraph'sfrontend
service has a lot of log15 usage. As a core entrypoint to many parts of Sourcegraph, having this layer migrated could help speed adoption of the new logging library.Success criteria
All 85 usages of log15 in
cmd/frontend/graphqlbackend
are replaced with usages of appropriately scoped loggers.https://sourcegraph.com/search?q=context:global+repo:%5Egithub%5C.com/sourcegraph/sourcegraph%24+file:%5Ecmd/frontend/graphqlbackend+log15&patternType=literal
Implementation details
Most usages here fall in one of two places:
resolver
struct functionIn case 1, the resolver struct should hold a reference to a
log.Logger
. In case 2, the helper should accept a logger parameter.Tracked issues
@gitstart-sourcegraph: 1.50d
Completed: 1.50d
The text was updated successfully, but these errors were encountered: