Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: should pass Logger to dialer to avoid nil #157

Merged
merged 2 commits into from
Sep 28, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion db/node_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import (

"github.com/daeuniverse/dae-wing/common"
"github.com/daeuniverse/dae/component/outbound/dialer"

"github.com/sirupsen/logrus"
)

func NewNodeModel(link string, tag *string, subscriptionId *uint) (*Node, error) {
Expand All @@ -23,7 +25,7 @@ func NewNodeModel(link string, tag *string, subscriptionId *uint) (*Node, error)
}
_tag = *tag
}
d, err := dialer.NewFromLink(&dialer.GlobalOption{}, dialer.InstanceOption{DisableCheck: false}, link, _tag)
d, err := dialer.NewFromLink(&dialer.GlobalOption{Log: logrus.StandardLogger()}, dialer.InstanceOption{DisableCheck: false}, link, _tag)
mzz2017 marked this conversation as resolved.
Show resolved Hide resolved
if err != nil {
return nil, err
}
Expand Down