Skip to content

Commit

Permalink
make LINODE_DEBUG env var optional
Browse files Browse the repository at this point in the history
  • Loading branch information
kzap committed Sep 27, 2018
1 parent 206b766 commit 92bf1f1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ func main() {
}

linodeClient := linodego.NewClient(oauth2Client)
linodeClient.SetDebug(true)

if _, ok := os.LookupEnv("LINODE_DEBUG"); ok {
linodeClient.SetDebug(true)
}

res, err := linodeClient.GetInstance(context.Background(), 4090913)
if err != nil {
Expand Down

0 comments on commit 92bf1f1

Please sign in to comment.