Skip to content

Commit

Permalink
Revert "fix: remove obsolete blank prints (GoogleCloudPlatform#144)"
Browse files Browse the repository at this point in the history
This reverts commit 5c7091f.
  • Loading branch information
anniefu committed Aug 23, 2022
1 parent 33c1e9d commit 6680124
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions funcframework/framework.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ func initServer() (*http.ServeMux, error) {

func wrapFunction(fn *registry.RegisteredFunction) (http.Handler, error) {
// Check if we have a function resource set, and if so, log progress.
if os.Getenv("K_SERVICE") == "" {
fmt.Printf("Serving function %s\n", fn.Name)
if os.Getenv("FUNCTION_TARGET") == "" {
fmt.Printf("Serving function %q", fn.Name)
}

if fn.HTTPFn != nil {
Expand Down

0 comments on commit 6680124

Please sign in to comment.