Skip to content

Commit

Permalink
fixes panic due to missing logger initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
BugRoger committed Dec 19, 2017
1 parent d55902f commit 857118a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/wormhole/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ type Server struct {

func NewServer(options *ServerOptions) (*Server, error) {
s := &Server{Logger: log.With(options.Logger, "wormhole", "server")}
if options.TunnelOptions.Logger == nil {
options.TunnelOptions.Logger = options.Logger
}

client, err := kube.NewClient(options.KubeConfig, options.Context, options.Logger)
if err != nil {
Expand Down

0 comments on commit 857118a

Please sign in to comment.