Skip to content

Conversation

@asmithakarun
Copy link
Contributor

No description provided.

Copy link
Contributor

@baemyung baemyung left a comment

Choose a reason for hiding this comment

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

It would be also better to show max-count on L153.

L153:                BMCWEB_LOG_ERROR("Failed to connect, reached max retry count:  {}",
                                 connectRetryCount);

@baemyung
Copy link
Contributor

Could you add some description (e.g. the example output etc) into the commit message?

@asmithakarun
Copy link
Contributor Author

It would be also better to show max-count on L153.

L153:                BMCWEB_LOG_ERROR("Failed to connect, reached max retry count:  {}",
                                 connectRetryCount);

But in this case, connectRetryCount will be at (or would have reached) maxRetryCount at that time of logging right?

When connecting to unix socket to offload dump, and if the socket is not
ready to accept connections, or for any other reasons, there is a retry
mechanism in bmcweb, that tries to connect to the socket for 3 times,
before sending back error to the user.

This commit improves the logging in case of retries.

Tested By:

On socket connection retries, the log shows as:
'''
Failed to connect, retrying... Retry count: 1
'''

Retries on reaching maxCount (which is 3), the log shows as:
'''
Failed to connect, reached max retry count: 3
'''

Signed-off-by: Asmitha Karunanithi <[email protected]>
Copy link
Contributor

@baemyung baemyung left a comment

Choose a reason for hiding this comment

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

It looks good to me

@rfrandse rfrandse merged commit ca71ecb into ibm-openbmc:1110 Oct 6, 2025
1 check passed
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.

3 participants