1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-06-12 22:07:47 +02:00

Strip the verbosity of the debug handler

This commit is contained in:
Asim Aslam
2019-07-28 19:43:50 +01:00
parent 1db98ee0f0
commit a63dcda003
5 changed files with 13 additions and 18 deletions

View File

@ -37,7 +37,7 @@ type Options struct {
Router Router
// Debug Handler which can be set by a user
DebugHandler debug.DebugHandler
DebugHandler debug.Handler
// Other options for implementations of the interface
// can be stored in a context
@ -67,7 +67,7 @@ func newOptions(opt ...Option) Options {
}
if opts.DebugHandler == nil {
opts.DebugHandler = debug.DefaultDebugHandler
opts.DebugHandler = debug.DefaultHandler
}
if opts.RegisterCheck == nil {
@ -157,7 +157,7 @@ func Transport(t transport.Transport) Option {
}
// DebugHandler for this server
func DebugHandler(d debug.DebugHandler) Option {
func DebugHandler(d debug.Handler) Option {
return func(o *Options) {
o.DebugHandler = d
}