Skip to content

[SG-37899] - migrate log15 usages in directories with the word 'codeintel' to new logger

Administrator requested to merge contractors/SG-37899 into main

Created by: gitstart-sourcegraph

Description

All log15 usage is removed from directories that have codeintel in their paths: https://sourcegraph.com/search?q=context:global+repo:%5Egithub%5C.com/sourcegraph/sourcegraph%24+f:codeintel+log15+count:all&patternType=lucky

If a logger is easily available (e.g. the struct a function is defined on has Logger, or it can be provided by modifying at most 1 function), then use an existing logger - otherwise, create a new one with log.Scoped

In testing, logger silencing can be replaced with logtest.NoOp

Refs

Test plan

Credit cost

90 credits

Merge request reports

Loading