Skip to content

Commit

Permalink
remove println which breaks json parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
KristopherPaulsen committed Jul 17, 2024
1 parent 44f2da9 commit f0f877d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"errors"
"fmt"

"github.com/inconshreveable/log15"
"gopkg.in/yaml.v3"

po "golang.ngrok.com/ngrok/policy"
Expand Down Expand Up @@ -77,7 +78,8 @@ func (p *policy) ApplyTCP(opts *tcpOptions) {

// policyToString converts the policy into a JSON string representation. This is to help remap Policy to TrafficPolicy.
func policyToString(p *policy) string {
fmt.Println("WithPolicy has been deprecated. Please use WithPolicyString instead, as WithPolicy will stop working soon.")
logger := log15.New()
logger.Warn("WithPolicy has been deprecated. Please use WithPolicyString instead, as WithPolicy will stop working soon.")

val, err := json.Marshal(p)
if err != nil {
Expand Down

0 comments on commit f0f877d

Please sign in to comment.