Skip to content

Instantly share code, notes, and snippets.

@navarrothiago
Created June 24, 2021 18:40
Show Gist options
  • Save navarrothiago/51babebf8b2cd3aa755fd03906da1fc2 to your computer and use it in GitHub Desktop.
Save navarrothiago/51babebf8b2cd3aa755fd03906da1fc2 to your computer and use it in GitHub Desktop.
Envoy debug trace
diff --git a/pkg/envoy/envoy.go b/pkg/envoy/envoy.go
index 2cb4f6536..fa6bb2e15 100644
--- a/pkg/envoy/envoy.go
+++ b/pkg/envoy/envoy.go
@@ -209,8 +209,9 @@ func StartEnvoy(stateDir, logPath string, baseID uint64) *Envoy {
defer logWriter.Close()
for {
- logLevel := logging.GetLevel(logging.DefaultLogger)
- cmd := exec.Command(ciliumEnvoy, "-l", mapLogLevel(logLevel), "-c", bootstrapPath, "--base-id", strconv.FormatUint(baseID, 10), "--log-format", logFormat)
+ // logLevel := logging.GetLevel(logging.DefaultLogger)
+ // cmd := exec.Command(ciliumEnvoy, "-l", mapLogLevel("trace"), "-c", bootstrapPath, "--base-id", strconv.FormatUint(baseID, 10), "--log-format", logFormat)
+ cmd := exec.Command(ciliumEnvoy, "-l", "trace", "-c", bootstrapPath, "--base-id", strconv.FormatUint(baseID, 10), "--log-format", logFormat)
cmd.Stderr = logWriter
cmd.Stdout = logWriter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment