Skip to content

Commit

Permalink
Enables debug logging by respecting BP_LOG_LEVEL
Browse files Browse the repository at this point in the history
  • Loading branch information
ForestEckhardt authored and ryanmoran committed Aug 3, 2022
1 parent 7e2dcb8 commit 3118366
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions run/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ package main
import (
"os"

"github.com/paketo-buildpacks/git"
"github.com/paketo-buildpacks/packit/v2"
"github.com/paketo-buildpacks/packit/v2/pexec"
"github.com/paketo-buildpacks/packit/v2/scribe"
"github.com/paketo-buildpacks/packit/v2/servicebindings"
"github.com/paketo-buildpacks/git"
)

func main() {
executable := pexec.NewExecutable("git")
emitter := scribe.NewEmitter(os.Stdout)
emitter := scribe.NewEmitter(os.Stdout).WithLevel(os.Getenv("BP_LOG_LEVEL"))
bindingResolver := servicebindings.NewResolver()

packit.Run(
Expand Down

0 comments on commit 3118366

Please sign in to comment.