deprecate logs package, but disable linter (for transitioning)

Deprecate the pacakge, but suppress linting errors for now. This is to allow
backporting these changes to release branches, which may still need to transition.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2023-09-13 14:10:41 +02:00
parent d69ae811d6
commit 03b9ce56b5
3 changed files with 53 additions and 0 deletions

View File

@@ -26,6 +26,8 @@ import (
// WithT adds a logging hook for the given test
// Changes debug level to debug, clears output, and
// outputs all log messages as test logs.
//
// Deprecated: use [logtest.WithT].
func WithT(ctx context.Context, t testing.TB) context.Context {
return logtest.WithT(ctx, t)
}