Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
KristopherPaulsen committed Jul 18, 2024
1 parent 7a7f835 commit 96fca4b
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions config/policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"errors"
"fmt"

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

po "golang.ngrok.com/ngrok/policy"
Expand Down Expand Up @@ -78,27 +77,6 @@ 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 {
logger := log15.New()
logger.Warn("WHAT")
logger.Warn("WHAT")
logger.Warn("WHAT")
logger.Warn("WHAT")
logger.Warn("WHAT")
logger.Warn("WHAT")
logger.Warn("WHAT")
logger.Warn("WHAT")
logger.Warn("WHAT")
logger.Warn("WHAT")
logger.Warn("WHAT")
logger.Warn("WHAT")
logger.Warn("WHAT")
logger.Warn("WHAT")
logger.Warn("WHAT")
logger.Warn("WHAT")
logger.Warn("WHAT")
logger.Warn("WHAT")
log15.Root().Warn("WithPolicy has been deprecated. Please use WithPolicyString instead, as WithPolicy will stop working soon.")

val, err := json.Marshal(p)
if err != nil {
panic(errors.New(fmt.Sprintf("failed to parse action configuration due to error: %s", err.Error())))
Expand Down

0 comments on commit 96fca4b

Please sign in to comment.