Skip to content

Commit

Permalink
Merge pull request #1 from Tessellated-io/keefer/minor-fixes
Browse files Browse the repository at this point in the history
Minor Logging Fixes
  • Loading branch information
keefertaylor authored Dec 20, 2023
2 parents 0605bc4 + 9a4d861 commit 81eb329
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion health/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ type healthClient struct {
var _ HealthClient = (*healthClient)(nil)

func NewHealthClient(logger *log.Logger, pingKey string, createNewChecks bool) HealthClient {
prefixedLogger := logger.ApplyPrefix("[HEALTHCHECKS] 🩺")

client := &http.Client{
Timeout: 10 * time.Second,
}
Expand All @@ -33,7 +35,7 @@ func NewHealthClient(logger *log.Logger, pingKey string, createNewChecks bool) H
pingKey: pingKey,
createNewChecks: createNewChecks,
client: client,
logger: logger,
logger: prefixedLogger,
}
}

Expand Down

0 comments on commit 81eb329

Please sign in to comment.