Skip to content

Commit

Permalink
Fix #13
Browse files Browse the repository at this point in the history
  • Loading branch information
Kai Hendry committed Oct 26, 2018
1 parent b1e53a2 commit a5272a6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
up.json
gin-bin
invite
12 changes: 9 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,17 @@ type invite struct {
}

func init() {
if os.Getenv("UP_STAGE") == "" {
log.SetHandler(text.Default)
} else {
log.SetHandler(text.Default)

if s := os.Getenv("UP_STAGE"); s != "" {
log.SetHandler(jsonhandler.Default)
version = s
}

if v := os.Getenv("UP_COMMIT"); v != "" {
commit = v
}

}

// New setups the configuration assuming various parameters have been setup in the AWS account
Expand Down

0 comments on commit a5272a6

Please sign in to comment.