Skip to content

Commit

Permalink
remove broken option
Browse files Browse the repository at this point in the history
  • Loading branch information
OneOfOne committed Aug 23, 2024
1 parent 7f15e18 commit e320bca
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.21
require (
github.com/golang-jwt/jwt/v4 v4.5.0
github.com/gorilla/securecookie v1.1.2
go.oneofone.dev/genh v0.0.0-20231018204829-f409a3fd4780
go.oneofone.dev/genh v0.0.0-20240822214507-ed5e4c93863d
go.oneofone.dev/oerrs v1.0.6
go.oneofone.dev/otk v1.0.7
golang.org/x/crypto v0.26.0
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ github.com/vmihailenco/tagparser/v2 v2.0.0 h1:y09buUbR+b5aycVFQs/g70pqKVZNBmxwAh
github.com/vmihailenco/tagparser/v2 v2.0.0/go.mod h1:Wri+At7QHww0WTrCBeu4J6bNtoV6mEfg5OIWRZA9qds=
go.oneofone.dev/genh v0.0.0-20231018204829-f409a3fd4780 h1:At/IoeQlGiYt2P+XaKRIkE9VAEfUIW8oxj1WkvC0F6U=
go.oneofone.dev/genh v0.0.0-20231018204829-f409a3fd4780/go.mod h1:Edk4a/3k+iKBagcGSv3z/lJn9OfV5F4Jk28tZ/FJhow=
go.oneofone.dev/genh v0.0.0-20240822214507-ed5e4c93863d h1:ikr1+qrpwDswS2LylK69ex/TyAWQ3mDk6OGMHkEGIUc=
go.oneofone.dev/genh v0.0.0-20240822214507-ed5e4c93863d/go.mod h1:Edk4a/3k+iKBagcGSv3z/lJn9OfV5F4Jk28tZ/FJhow=
go.oneofone.dev/oerrs v1.0.6 h1:xI/DJUhjfBcOkpSAOPw/Rv3o4H8IRYMJI84XZtzYRkc=
go.oneofone.dev/oerrs v1.0.6/go.mod h1:sZ3oKk6Q0lH/nCFex2EYdIZP87O8RouMNYvibMUSl9k=
go.oneofone.dev/otk v1.0.7 h1:OrcNHPVplQ8oWOrSU/y+cDpBapbk2TIZlqoDeqKMkzY=
Expand Down
3 changes: 1 addition & 2 deletions options.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ type Options struct {
WriteTimeout time.Duration
MaxHeaderBytes int

CatchPanics bool
EnableDefaultHTTPLogging bool // disables the spam on disconnects and tls, it can hide important messages sometimes
CatchPanics bool
}

// Option is a func to set internal server Options.
Expand Down
6 changes: 3 additions & 3 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ func (s *Server) newHTTPServer(ctx context.Context, addr string, forceHTTP2 bool
}

lg := opts.Logger
if !opts.EnableDefaultHTTPLogging {
lg = noopLogger
}
// if !opts.EnableDefaultHTTPLogging {
// lg = noopLogger
// }

srv := &http.Server{
Addr: addr,
Expand Down

0 comments on commit e320bca

Please sign in to comment.