Skip to content

Commit 5de712f

Browse files
author
Dexter Haslem
committed
update readme for setting logging level
1 parent bb63333 commit 5de712f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,10 @@ import "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox"
4343
import "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/users"
4444

4545
func main() {
46-
config := dropbox.Config{Token: token, Verbose: true} // second arg enables verbose logging in the SDK
46+
config := dropbox.Config{
47+
Token: token,
48+
LogLevel: dropbox.LogInfo // if needed, set the desired logging level. Default is off
49+
}
4750
dbx := users.New(config)
4851
// start making API calls
4952
}

0 commit comments

Comments
 (0)