Skip to content

Commit

Permalink
add logging see what happens
Browse files Browse the repository at this point in the history
  • Loading branch information
KristopherPaulsen committed Jul 18, 2024
1 parent bf547bd commit 7a7f835
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions config/policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,25 @@ 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)
Expand Down

0 comments on commit 7a7f835

Please sign in to comment.