dbxcli icon indicating copy to clipboard operation
dbxcli copied to clipboard

Verbose Logging

Open MarkMichaelis opened this issue 5 years ago • 0 comments

There multiple occasions when an err is returned and then ignored with code such as:

    if err != nil {
        return err
    }

I'd like to start logging these so that they appear when the --verbose/-v flag is active. Does this make sense?

Regardless, what is the recommended code pattern for logging messages when verbose mode is active?

MarkMichaelis avatar Dec 31 '20 02:12 MarkMichaelis