Skip to content

goroutine leak #83

@liuhao2050

Description

@liuhao2050

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/[email protected]/util/log/logger.go:375 +0xec
        created by github.com/baidubce/bce-sdk-go/util/log.NewLogger
               /mod/github.com/baidubce/[email protected]/util/log/logger.go:368 +0x244

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions