Skip to content

Commit

Permalink
Switch back to prod
Browse files Browse the repository at this point in the history
  • Loading branch information
GoneUp committed Feb 2, 2023
1 parent 17c4e95 commit 66cb1b5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ import (
)

func init() {
log.SetLevel(log.InfoLevel)
log.SetLevel(log.DebugLevel)
log.SetReportCaller(true)
}

func main() {
log.Info("Startup")
err := godotenv.Load(".env.dev")
err := godotenv.Load(".env.prod")
if err != nil {
log.Fatal("Error loading .env file")
}
Expand All @@ -27,7 +27,7 @@ func main() {
org := os.Getenv("PINGEN_ORG")

var c *pingen.Client
c, err = pingen.NewClient(clientID, clientSecret, false, org, context.Background())
c, err = pingen.NewClient(clientID, clientSecret, true, org, context.Background())
if err != nil {
log.Fatalf("Init failed, error %w", err)
}
Expand Down

0 comments on commit 66cb1b5

Please sign in to comment.