Skip to content

Commit

Permalink
fix: incorrect env reporting on init
Browse files Browse the repository at this point in the history
  • Loading branch information
ivynya committed Aug 16, 2023
1 parent 53f4360 commit 17890c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/redirect/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ func main() {

createRouter(app)

analyticsPresent := os.Getenv("ANALYTICS_API_HOST") != ""
tokenPresent := os.Getenv("NOTION_TOKEN") != ""
log.Println("[redirect] $NOTION_DB_ID:", os.Getenv("NOTION_DB_ID"))
log.Println("[redirect] $NOTION_TOKEN:", tokenPresent)
log.Println("[redirect] $ANALYTICS_API_HOST:", analyticsPresent)
log.Println("[redirect] $ANALYTICS_HOST:", os.Getenv("ANALYTICS_HOST"))
log.Println("[redirect] $ANALYTICS_VERSION:", os.Getenv("ANALYTICS_VERSION"))
log.Println("[redirect] starting fiber on port 3000")

log.Fatal(app.Listen(":3000"))
Expand Down

0 comments on commit 17890c7

Please sign in to comment.