Skip to content

Commit c42ee1c

Browse files
committed
slog: remove FromContext, NewContext and Ctx
Change-Id: I5adbfa4e62df03e8a3bb588750ed2e283ee394a2 Reviewed-on: https://go-review.googlesource.com/c/exp/+/461940 Reviewed-by: Alan Donovan <[email protected]> Run-TryBot: Jonathan Amsterdam <[email protected]> TryBot-Result: Gopher Robot <[email protected]>
1 parent 75897c7 commit c42ee1c

File tree

3 files changed

+0
-88
lines changed

3 files changed

+0
-88
lines changed

slog/context.go

Lines changed: 0 additions & 30 deletions
This file was deleted.

slog/context_test.go

Lines changed: 0 additions & 49 deletions
This file was deleted.

slog/logger_test.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -512,13 +512,4 @@ func BenchmarkNopLog(b *testing.B) {
512512
}
513513
})
514514
})
515-
b.Run("Ctx", func(b *testing.B) {
516-
dl := Default()
517-
SetDefault(l)
518-
defer SetDefault(dl)
519-
b.ReportAllocs()
520-
for i := 0; i < b.N; i++ {
521-
Ctx(ctx).LogAttrs(LevelInfo, "msg", Int("a", 1), String("b", "two"), Bool("c", true))
522-
}
523-
})
524515
}

0 commit comments

Comments
 (0)