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

goroutine leak #83

Open
liuhao2050 opened this issue May 19, 2023 · 0 comments
Open

goroutine leak #83

liuhao2050 opened this issue May 19, 2023 · 0 comments

Comments

@liuhao2050
Copy link

liuhao2050 commented May 19, 2023

In certain scenarios, we may want to use the go leark tool to detect goroutine leaks. In the context of log/logger.go:375, a goroutine is created for log output. However, it is not possible for us to close this goroutine from our project.

please provide some method to close it, thank you!

leaks.go:78: found unexpected goroutines:
        [Goroutine 19 in state select, with github.com/baidubce/bce-sdk-go/util/log.NewLogger.func1 on top of the stack:
        goroutine 19 [select]:
        github.com/baidubce/bce-sdk-go/util/log.NewLogger.func1()
               /mod/github.com/baidubce/bce-sdk-go@v0.9.147/util/log/logger.go:375 +0xec
        created by github.com/baidubce/bce-sdk-go/util/log.NewLogger
               /mod/github.com/baidubce/bce-sdk-go@v0.9.147/util/log/logger.go:368 +0x244
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