Skip to content

add error handling for logger.Sync()#1421

Open
whiteforestever wants to merge 1 commit intouber-go:masterfrom
whiteforestever:patch-1
Open

add error handling for logger.Sync()#1421
whiteforestever wants to merge 1 commit intouber-go:masterfrom
whiteforestever:patch-1

Conversation

@whiteforestever
Copy link
Copy Markdown

By using current approach defer logger.Sync() we don't handle possible error returned by func (log *Logger) Sync() error. My suggestion is to wrap it with anonymous function.

add error handling for `logger.Sync()`
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Mar 10, 2024

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants