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

panic: Logger uninitialized. names=[] #2

Closed
tsynik opened this issue May 16, 2022 · 1 comment
Closed

panic: Logger uninitialized. names=[] #2

tsynik opened this issue May 16, 2022 · 1 comment

Comments

@tsynik
Copy link

tsynik commented May 16, 2022

@anacrolix after switching to v0.13.1 of anacrolix/log I have panic with dms from ssdp, here is log:

panic: Logger uninitialized. names=["ssdp" "192.168.8.6:1900"]

goroutine 116 [running]:
github.com/anacrolix/log.loggerCore.handle({0x0, {0x400003d220, 0x2, 0x2}, {0x0, 0x0, 0x0}, {0x0}, {0x0}, {0x0, ...}, ...}, ...)
        /Users/nikk/go/pkg/mod/github.com/anacrolix/[email protected]/logger-core.go:82 +0x1a4
github.com/anacrolix/log.loggerCore.lazyLog({0x0, {0x400003d220, 0x2, 0x2}, {0x0, 0x0, 0x0}, {0x0}, {0x0}, {0x0, ...}, ...}, ...)
        /Users/nikk/go/pkg/mod/github.com/anacrolix/[email protected]/logger-core.go:72 +0x1a4
github.com/anacrolix/log.loggerCore.LazyLogDefaultLevel(...)
        /Users/nikk/go/pkg/mod/github.com/anacrolix/[email protected]/logger-core.go:59
github.com/anacrolix/log.Logger.Println({{0x0, {0x400003d220, 0x2, 0x2}, {0x0, 0x0, 0x0}, {0x0}, {0x0}, {0x0, ...}, ...}}, ...)
        /Users/nikk/go/pkg/mod/github.com/anacrolix/[email protected]/logger.go:69 +0x10c
github.com/anacrolix/dms/ssdp.(*Server).handle(0x400040a280, {0x4000abc000, 0x0, 0x5dc}, 0x4000ab40f0?)
        /Users/nikk/go/pkg/mod/github.com/tsynik/[email protected]/ssdp/ssdp.go:261 +0x390
created by github.com/anacrolix/dms/ssdp.(*Server).serve
        /Users/nikk/go/pkg/mod/github.com/tsynik/[email protected]/ssdp/ssdp.go:129 +0x1e8

added withNames() to ssdp.go - tsynik/dms@05367d4 but this doesn't help. How to fix?

@tsynik
Copy link
Author

tsynik commented May 16, 2022

hm, fixed this in dms/dms.go

@tsynik tsynik closed this as completed May 16, 2022
tsynik added a commit to tsynik/dms that referenced this issue May 17, 2022
anacrolix pushed a commit to anacrolix/dms that referenced this issue May 19, 2022
* fix uninitialized logger on ssdp error

anacrolix/log#2

* gofmt -l -w .
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

No branches or pull requests

1 participant