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

stomp.ConnOpt.Logger has no effect #117

Closed
dselim opened this issue Mar 16, 2022 · 0 comments · Fixed by #119
Closed

stomp.ConnOpt.Logger has no effect #117

dselim opened this issue Mar 16, 2022 · 0 comments · Fixed by #119

Comments

@dselim
Copy link

dselim commented Mar 16, 2022

Using stomp.ConnOpt.Logger as a a dial/connect option doesn't change the default logger.

Although the logger is successfully assigned to the *Conn here:

err := opt(conn)

It is immediately overriden here:

stomp/conn.go

Line 92 in fd49af8

c.log = options.Logger

becauseoptions.Logger is always log.StdLogger{}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant