Skip to content

feat: add error log on status.go#7

Open
kenkalang wants to merge 2 commits into
masterfrom
feat/add-error-log
Open

feat: add error log on status.go#7
kenkalang wants to merge 2 commits into
masterfrom
feat/add-error-log

Conversation

@kenkalang

@kenkalang kenkalang commented Nov 28, 2025

Copy link
Copy Markdown
Collaborator
Screenshot 2025-12-01 at 17 06 49

Comment thread status.go Outdated
defer c.Unlock()
// Calling Connect when already connecting (or if reconnecting) may not always be considered an error
if c.status == connected || c.status == reconnecting {
if c.logger != nil {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The caller is already printing according to the error returned.

Idea is to print the status whenever it is changing.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, actually i got a bit confused here. Does this mean we'll put it as DEBUG log?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error level

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok changed. Then in that case, we'll be using commit version instead of stable release, right?

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 this pull request may close these issues.

2 participants