Skip to content

Commit

Permalink
Adding more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
COMTOP1 committed Nov 19, 2024
1 parent 0296677 commit be69d0a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion link/link.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,15 @@ type (
func New() (*Link, error) {
err := godotenv.Load()
if err != nil {
fmt.Printf("error loading .env file: %s", err)
fmt.Printf("error loading .env file: %+v\n", err)
}

link := os.Getenv("LINK_JSON")
if len(link) == 0 {
return nil, fmt.Errorf("LINK_JSON environment variable cannot be found")
}

fmt.Println(link)
link = strings.ReplaceAll(link, "'", "\"")
fmt.Println(link)

Expand Down
3 changes: 2 additions & 1 deletion team/team.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,15 @@ type (
func New() (*[]Member, error) {
err := godotenv.Load()
if err != nil {
fmt.Printf("error loading .env file: %s", err)
fmt.Printf("error loading .env file: %+v\n", err)
}

team := os.Getenv("TEAM_JSON")
if len(team) == 0 {
return nil, fmt.Errorf("TEAM_JSON environment variable cannot be found")
}

fmt.Println(team)
team = strings.ReplaceAll(team, "'", "\"")
fmt.Println(team)

Expand Down

0 comments on commit be69d0a

Please sign in to comment.