Skip to content

bug: start the client should before set up logging to fix the nil pointer problem #400

Closed
@coldwind007

Description

@coldwind007

Description

in the examples/simple_client/main.go
When you run this program, you will most likely encounter the following problems

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x67579c]

Possible Solution

Placing the start client code block before setup logging can solve this problem

Image

Metadata

Metadata

Assignees

Labels

good first issueGood for new contributorshelp wantedExtra attention is neededtype: bugSomething isn't working as expected

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions