dropbox / dbxcli

A command line client for Dropbox built using the Go SDK
Other
1.05k stars 101 forks source link

Verbose Logging #156

Open MarkMichaelis opened 3 years ago

MarkMichaelis commented 3 years ago

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?