Skip to content

Commit

Permalink
Update dependencies.
Browse files Browse the repository at this point in the history
Incorporate log level change from the Dropbox SDK.
  • Loading branch information
Diwaker Gupta committed Nov 10, 2017
1 parent e04dd7b commit cb36f23
Show file tree
Hide file tree
Showing 41 changed files with 3,598 additions and 2,703 deletions.
14 changes: 7 additions & 7 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cmd/logout.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func logout(cmd *cobra.Command, args []string) error {

for domain, tokens := range tokMap {
for _, token := range tokens {
config := dropbox.Config{token, false, nil, "", domain, nil, nil, nil}
config := dropbox.Config{token, dropbox.LogOff, nil, "", domain, nil, nil, nil}
client := auth.New(config)
client.TokenRevoke()
if err != nil {
Expand Down
6 changes: 5 additions & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,11 @@ func initDbx(cmd *cobra.Command, args []string) (err error) {
writeTokens(filePath, tokenMap)
}

config = dropbox.Config{tokens[tokType], verbose, nil, asMember, domain, nil, nil, nil}
logLevel := dropbox.LogOff
if verbose {
logLevel = dropbox.LogInfo
}
config = dropbox.Config{tokens[tokType], logLevel, nil, asMember, domain, nil, nil, nil}

return
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit cb36f23

Please sign in to comment.