Updated deps, go.19 migration, nginx template work

This commit is contained in:
Jamie Curnow
2022-11-08 10:03:45 +10:00
parent 8d37f5df8d
commit c00b690ed3
23 changed files with 375 additions and 376 deletions

View File

@ -4,7 +4,7 @@ import (
"bytes"
"errors"
"fmt"
"io/ioutil"
"io"
"log"
"os"
"testing"
@ -144,7 +144,7 @@ func TestConfigure(t *testing.T) {
func BenchmarkLogLevelBelowThreshold(b *testing.B) {
l := NewLogger()
log.SetOutput(ioutil.Discard)
log.SetOutput(io.Discard)
defer func() {
log.SetOutput(os.Stderr)
}()
@ -157,7 +157,7 @@ func BenchmarkLogLevelBelowThreshold(b *testing.B) {
func BenchmarkLogLevelAboveThreshold(b *testing.B) {
l := NewLogger()
log.SetOutput(ioutil.Discard)
log.SetOutput(io.Discard)
defer func() {
log.SetOutput(os.Stderr)
}()